11#ifndef GI_GBP_BRIDGEDOMAIN_HPP
12#define GI_GBP_BRIDGEDOMAIN_HPP
14#include <boost/optional.hpp>
15#include "opflex/modb/URIBuilder.h"
16#include "opflex/modb/mo-internal/MO.h"
20#include "modelgbp/gbpe/InstContext.hpp"
24#include "modelgbp/gbp/EpGroupFromNetworkRTgt.hpp"
28#include "modelgbp/gbp/BridgeDomainToNetworkRSrc.hpp"
32#include "modelgbp/gbp/FloodDomainFromNetworkRTgt.hpp"
36#include "modelgbp/gbp/ForwardingBehavioralGroupToSubnetsRSrc.hpp"
42 :
public opflex::modb::mointernal::MO
49 static const opflex::modb::class_id_t
CLASS_ID = 181;
64 boost::optional<const std::string&>
getName()
103 getTLMutator().modify(
getClassId(),
getURI())->unset(5931009ul, opflex::modb::PropertyInfo::STRING, opflex::modb::PropertyInfo::SCALAR);
174 static boost::optional<OF_SHARED_PTR<modelgbp::gbp::BridgeDomain> >
resolve(
176 const opflex::modb::URI&
uri)
178 return opflex::modb::mointernal::MO::resolve<modelgbp::gbp::BridgeDomain>(
framework,
CLASS_ID,
uri);
192 static boost::optional<OF_SHARED_PTR<modelgbp::gbp::BridgeDomain> >
resolve(
193 const opflex::modb::URI&
uri)
195 return opflex::modb::mointernal::MO::resolve<modelgbp::gbp::BridgeDomain>(opflex::ofcore::OFFramework::defaultInstance(),
CLASS_ID,
uri);
216 static boost::optional<OF_SHARED_PTR<modelgbp::gbp::BridgeDomain> >
resolve(
241 static boost::optional<OF_SHARED_PTR<modelgbp::gbp::BridgeDomain> >
resolve(
339 opflex::modb::mointernal::MO::resolveChildren<modelgbp::gbp::EpGroupFromNetworkRTgt>(
434 opflex::modb::mointernal::MO::resolveChildren<modelgbp::gbp::FloodDomainFromNetworkRTgt>(
497 const opflex::modb::URI&
uri)
514 remove(opflex::ofcore::OFFramework::defaultInstance(),
uri);
577 opflex::modb::ObjectListener*
listener)
579 opflex::modb::mointernal
595 opflex::modb::ObjectListener*
listener)
608 opflex::modb::ObjectListener*
listener)
610 opflex::modb::mointernal
621 opflex::modb::ObjectListener*
listener)
632 const opflex::modb::URI&
uri,
static boost::optional< OF_SHARED_PTR< modelgbp::gbp::BridgeDomainToNetworkRSrc > > resolve(opflex::ofcore::OFFramework &framework, const opflex::modb::URI &uri)
Retrieve an instance of BridgeDomainToNetworkRSrc from the managed object store.
Definition BridgeDomainToNetworkRSrc.hpp:257
Definition BridgeDomain.hpp:43
static void registerListener(opflex::ofcore::OFFramework &framework, opflex::modb::ObjectListener *listener)
Register a listener that will get called for changes related to this class.
Definition BridgeDomain.hpp:575
static void remove(const std::string &policySpaceName, const std::string &gbpBridgeDomainName)
Remove the BridgeDomain object with the specified path elements from the managed object store using t...
Definition BridgeDomain.hpp:557
modelgbp::gbp::BridgeDomain & setName(const std::string &newValue)
Set name to the specified value in the currently-active mutator.
Definition BridgeDomain.hpp:89
bool isNameSet()
Check whether name has been set.
Definition BridgeDomain.hpp:55
static const opflex::modb::class_id_t CLASS_ID
The unique class ID for BridgeDomain.
Definition BridgeDomain.hpp:49
OF_SHARED_PTR< modelgbp::gbpe::InstContext > addGbpeInstContext()
Create a new child object with the specified naming properties and make it a child of this object in ...
Definition BridgeDomain.hpp:273
static void unregisterListener(opflex::ofcore::OFFramework &framework, opflex::modb::ObjectListener *listener)
Unregister a listener from updates to this class.
Definition BridgeDomain.hpp:606
bool isRoutingModeSet()
Check whether routingMode has been set.
Definition BridgeDomain.hpp:111
modelgbp::gbp::BridgeDomain & unsetRoutingMode()
Unset routingMode in the currently-active mutator.
Definition BridgeDomain.hpp:157
OF_SHARED_PTR< modelgbp::gbp::EpGroupFromNetworkRTgt > addGbpEpGroupFromNetworkRTgt(const std::string &gbpEpGroupFromNetworkRTgtSource)
Create a new child object with the specified naming properties and make it a child of this object in ...
Definition BridgeDomain.hpp:312
static boost::optional< OF_SHARED_PTR< modelgbp::gbp::BridgeDomain > > resolve(const opflex::modb::URI &uri)
Retrieve an instance of BridgeDomain from the managed object store using the default framework instan...
Definition BridgeDomain.hpp:192
static boost::optional< OF_SHARED_PTR< modelgbp::gbp::BridgeDomain > > resolve(opflex::ofcore::OFFramework &framework, const std::string &policySpaceName, const std::string &gbpBridgeDomainName)
Retrieve an instance of BridgeDomain from the managed object store by constructing its URI from the p...
Definition BridgeDomain.hpp:216
boost::optional< OF_SHARED_PTR< modelgbp::gbp::EpGroupFromNetworkRTgt > > resolveGbpEpGroupFromNetworkRTgt(const std::string &gbpEpGroupFromNetworkRTgtSource)
Retrieve the child object with the specified naming properties.
Definition BridgeDomain.hpp:294
static void remove(opflex::ofcore::OFFramework &framework, const opflex::modb::URI &uri)
Remove the BridgeDomain object with the specified URI using the currently-active mutator.
Definition BridgeDomain.hpp:496
OF_SHARED_PTR< modelgbp::gbp::FloodDomainFromNetworkRTgt > addGbpFloodDomainFromNetworkRTgt(const std::string &gbpFloodDomainFromNetworkRTgtSource)
Create a new child object with the specified naming properties and make it a child of this object in ...
Definition BridgeDomain.hpp:407
static void remove(const opflex::modb::URI &uri)
Remove the BridgeDomain object with the specified URI using the currently-active mutator and the defa...
Definition BridgeDomain.hpp:512
void remove()
Remove this instance using the currently-active mutator.
Definition BridgeDomain.hpp:481
modelgbp::gbp::BridgeDomain & setRoutingMode(const uint8_t newValue)
Set routingMode to the specified value in the currently-active mutator.
Definition BridgeDomain.hpp:145
boost::optional< OF_SHARED_PTR< modelgbp::gbp::FloodDomainFromNetworkRTgt > > resolveGbpFloodDomainFromNetworkRTgt(const std::string &gbpFloodDomainFromNetworkRTgtSource)
Retrieve the child object with the specified naming properties.
Definition BridgeDomain.hpp:389
void resolveGbpFloodDomainFromNetworkRTgt(std::vector< OF_SHARED_PTR< modelgbp::gbp::FloodDomainFromNetworkRTgt > > &out)
Resolve and retrieve all of the immediate children of type modelgbp::gbp::FloodDomainFromNetworkRTgt.
Definition BridgeDomain.hpp:432
const uint8_t getRoutingMode(const uint8_t defaultValue)
Get the value of routingMode if set, otherwise the value of default passed in.
Definition BridgeDomain.hpp:132
static boost::optional< OF_SHARED_PTR< modelgbp::gbp::BridgeDomain > > resolve(const std::string &policySpaceName, const std::string &gbpBridgeDomainName)
Retrieve an instance of BridgeDomain from the default managed object store by constructing its URI fr...
Definition BridgeDomain.hpp:241
boost::optional< OF_SHARED_PTR< modelgbp::gbpe::InstContext > > resolveGbpeInstContext()
Retrieve the child object with the specified naming properties.
Definition BridgeDomain.hpp:257
OF_SHARED_PTR< modelgbp::gbp::BridgeDomainToNetworkRSrc > addGbpBridgeDomainToNetworkRSrc()
Create a new child object with the specified naming properties and make it a child of this object in ...
Definition BridgeDomain.hpp:368
static void registerListener(opflex::modb::ObjectListener *listener)
Register a listener that will get called for changes related to this class with the default framework...
Definition BridgeDomain.hpp:594
modelgbp::gbp::BridgeDomain & unsetName()
Unset name in the currently-active mutator.
Definition BridgeDomain.hpp:101
const std::string & getName(const std::string &defaultValue)
Get the value of name if set, otherwise the value of default passed in.
Definition BridgeDomain.hpp:76
OF_SHARED_PTR< modelgbp::gbp::ForwardingBehavioralGroupToSubnetsRSrc > addGbpForwardingBehavioralGroupToSubnetsRSrc()
Create a new child object with the specified naming properties and make it a child of this object in ...
Definition BridgeDomain.hpp:463
BridgeDomain(opflex::ofcore::OFFramework &framework, const opflex::modb::URI &uri, const OF_SHARED_PTR< const opflex::modb::mointernal::ObjectInstance > &oi)
Construct an instance of BridgeDomain.
Definition BridgeDomain.hpp:630
boost::optional< const std::string & > getName()
Get the value of name if it has been set.
Definition BridgeDomain.hpp:64
static boost::optional< OF_SHARED_PTR< modelgbp::gbp::BridgeDomain > > resolve(opflex::ofcore::OFFramework &framework, const opflex::modb::URI &uri)
Retrieve an instance of BridgeDomain from the managed object store.
Definition BridgeDomain.hpp:174
boost::optional< OF_SHARED_PTR< modelgbp::gbp::ForwardingBehavioralGroupToSubnetsRSrc > > resolveGbpForwardingBehavioralGroupToSubnetsRSrc()
Retrieve the child object with the specified naming properties.
Definition BridgeDomain.hpp:447
static void remove(opflex::ofcore::OFFramework &framework, const std::string &policySpaceName, const std::string &gbpBridgeDomainName)
Remove the BridgeDomain object with the specified path elements from the managed object store.
Definition BridgeDomain.hpp:533
void resolveGbpEpGroupFromNetworkRTgt(std::vector< OF_SHARED_PTR< modelgbp::gbp::EpGroupFromNetworkRTgt > > &out)
Resolve and retrieve all of the immediate children of type modelgbp::gbp::EpGroupFromNetworkRTgt.
Definition BridgeDomain.hpp:337
boost::optional< OF_SHARED_PTR< modelgbp::gbp::BridgeDomainToNetworkRSrc > > resolveGbpBridgeDomainToNetworkRSrc()
Retrieve the child object with the specified naming properties.
Definition BridgeDomain.hpp:352
static void unregisterListener(opflex::modb::ObjectListener *listener)
Unregister a listener from updates to this class from the default framework instance.
Definition BridgeDomain.hpp:620
boost::optional< const uint8_t > getRoutingMode()
Get the value of routingMode if it has been set.
Definition BridgeDomain.hpp:120
static boost::optional< OF_SHARED_PTR< modelgbp::gbp::EpGroupFromNetworkRTgt > > resolve(opflex::ofcore::OFFramework &framework, const opflex::modb::URI &uri)
Retrieve an instance of EpGroupFromNetworkRTgt from the managed object store.
Definition EpGroupFromNetworkRTgt.hpp:210
static boost::optional< OF_SHARED_PTR< modelgbp::gbp::FloodDomainFromNetworkRTgt > > resolve(opflex::ofcore::OFFramework &framework, const opflex::modb::URI &uri)
Retrieve an instance of FloodDomainFromNetworkRTgt from the managed object store.
Definition FloodDomainFromNetworkRTgt.hpp:210
static boost::optional< OF_SHARED_PTR< modelgbp::gbp::ForwardingBehavioralGroupToSubnetsRSrc > > resolve(opflex::ofcore::OFFramework &framework, const opflex::modb::URI &uri)
Retrieve an instance of ForwardingBehavioralGroupToSubnetsRSrc from the managed object store.
Definition ForwardingBehavioralGroupToSubnetsRSrc.hpp:257
static boost::optional< OF_SHARED_PTR< modelgbp::gbpe::InstContext > > resolve(opflex::ofcore::OFFramework &framework, const opflex::modb::URI &uri)
Retrieve an instance of InstContext from the managed object store.
Definition InstContext.hpp:210
SOME COPYRIGHT.
Definition OpcodeEnumT.hpp:12