11 #ifndef GI_GBP_FLOODDOMAIN_HPP
12 #define GI_GBP_FLOODDOMAIN_HPP
14 #include <boost/optional.hpp>
15 #include "opflex/modb/URIBuilder.h"
16 #include "opflex/modb/mo-internal/MO.h"
20 #include "modelgbp/gbpe/FloodContext.hpp"
24 #include "modelgbp/gbp/EpGroupFromNetworkRTgt.hpp"
28 #include "modelgbp/gbp/FloodDomainToNetworkRSrc.hpp"
32 #include "modelgbp/gbp/ForwardingBehavioralGroupToSubnetsRSrc.hpp"
38 :
public opflex::modb::mointernal::MO
45 static const opflex::modb::class_id_t
CLASS_ID = 141;
53 return getObjectInstance().isSet(4620290ul, opflex::modb::PropertyInfo::ENUM8);
63 return (
const uint8_t)getObjectInstance().getUInt64(4620290ul);
74 return getArpMode().get_value_or(defaultValue);
87 getTLMutator().modify(getClassId(), getURI())->setUInt64(4620290ul, newValue);
99 getTLMutator().modify(getClassId(), getURI())->unset(4620290ul, opflex::modb::PropertyInfo::ENUM8, opflex::modb::PropertyInfo::SCALAR);
109 return getObjectInstance().isSet(4620293ul, opflex::modb::PropertyInfo::ENUM8);
119 return (
const uint8_t)getObjectInstance().getUInt64(4620293ul);
143 getTLMutator().modify(getClassId(), getURI())->setUInt64(4620293ul, newValue);
155 getTLMutator().modify(getClassId(), getURI())->unset(4620293ul, opflex::modb::PropertyInfo::ENUM8, opflex::modb::PropertyInfo::SCALAR);
165 return getObjectInstance().isSet(4620289ul, opflex::modb::PropertyInfo::STRING);
175 return getObjectInstance().getString(4620289ul);
184 const std::string&
getName(
const std::string& defaultValue)
186 return getName().get_value_or(defaultValue);
199 getTLMutator().modify(getClassId(), getURI())->setString(4620289ul, newValue);
211 getTLMutator().modify(getClassId(), getURI())->unset(4620289ul, opflex::modb::PropertyInfo::STRING, opflex::modb::PropertyInfo::SCALAR);
221 return getObjectInstance().isSet(4620291ul, opflex::modb::PropertyInfo::ENUM8);
231 return (
const uint8_t)getObjectInstance().getUInt64(4620291ul);
255 getTLMutator().modify(getClassId(), getURI())->setUInt64(4620291ul, newValue);
267 getTLMutator().modify(getClassId(), getURI())->unset(4620291ul, opflex::modb::PropertyInfo::ENUM8, opflex::modb::PropertyInfo::SCALAR);
277 return getObjectInstance().isSet(4620292ul, opflex::modb::PropertyInfo::ENUM8);
287 return (
const uint8_t)getObjectInstance().getUInt64(4620292ul);
311 getTLMutator().modify(getClassId(), getURI())->setUInt64(4620292ul, newValue);
323 getTLMutator().modify(getClassId(), getURI())->unset(4620292ul, opflex::modb::PropertyInfo::ENUM8, opflex::modb::PropertyInfo::SCALAR);
338 static boost::optional<boost::shared_ptr<modelgbp::gbp::FloodDomain> >
resolve(
339 opflex::ofcore::OFFramework& framework,
340 const opflex::modb::URI& uri)
342 return opflex::modb::mointernal::MO::resolve<modelgbp::gbp::FloodDomain>(framework,
CLASS_ID, uri);
356 static boost::optional<boost::shared_ptr<modelgbp::gbp::FloodDomain> >
resolve(
357 const opflex::modb::URI& uri)
359 return opflex::modb::mointernal::MO::resolve<modelgbp::gbp::FloodDomain>(opflex::ofcore::OFFramework::defaultInstance(),
CLASS_ID, uri);
380 static boost::optional<boost::shared_ptr<modelgbp::gbp::FloodDomain> >
resolve(
381 opflex::ofcore::OFFramework& framework,
382 const std::string& policySpaceName,
383 const std::string& gbpFloodDomainName)
385 return resolve(framework,opflex::modb::URIBuilder().addElement(
"PolicyUniverse").addElement(
"PolicySpace").addElement(policySpaceName).addElement(
"GbpFloodDomain").addElement(gbpFloodDomainName).build());
405 static boost::optional<boost::shared_ptr<modelgbp::gbp::FloodDomain> >
resolve(
406 const std::string& policySpaceName,
407 const std::string& gbpFloodDomainName)
409 return resolve(opflex::ofcore::OFFramework::defaultInstance(),policySpaceName,gbpFloodDomainName);
440 boost::shared_ptr<modelgbp::gbpe::FloodContext> result = addChild<modelgbp::gbpe::FloodContext>(
441 CLASS_ID, getURI(), 2152103966ul, 30,
442 opflex::modb::URIBuilder(getURI()).addElement(
"GbpeFloodContext").build()
459 const std::string& gbpEpGroupFromNetworkRTgtSource)
477 const std::string& gbpEpGroupFromNetworkRTgtSource)
479 boost::shared_ptr<modelgbp::gbp::EpGroupFromNetworkRTgt> result = addChild<modelgbp::gbp::EpGroupFromNetworkRTgt>(
480 CLASS_ID, getURI(), 2152104049ul, 113,
481 opflex::modb::URIBuilder(getURI()).addElement(
"GbpEpGroupFromNetworkRTgt").addElement(gbpEpGroupFromNetworkRTgtSource).build()
483 result->setSource(gbpEpGroupFromNetworkRTgtSource);
503 opflex::modb::mointernal::MO::resolveChildren<modelgbp::gbp::EpGroupFromNetworkRTgt>(
504 getFramework(),
CLASS_ID, getURI(), 2152104049ul, 113, out);
535 boost::shared_ptr<modelgbp::gbp::FloodDomainToNetworkRSrc> result = addChild<modelgbp::gbp::FloodDomainToNetworkRSrc>(
536 CLASS_ID, getURI(), 2152104078ul, 142,
537 opflex::modb::URIBuilder(getURI()).addElement(
"GbpFloodDomainToNetworkRSrc").build()
570 boost::shared_ptr<modelgbp::gbp::ForwardingBehavioralGroupToSubnetsRSrc> result = addChild<modelgbp::gbp::ForwardingBehavioralGroupToSubnetsRSrc>(
571 CLASS_ID, getURI(), 2152104091ul, 155,
572 opflex::modb::URIBuilder(getURI()).addElement(
"GbpForwardingBehavioralGroupToSubnetsRSrc").build()
587 getTLMutator().remove(
CLASS_ID, getURI());
600 static void remove(opflex::ofcore::OFFramework& framework,
601 const opflex::modb::URI& uri)
603 MO::remove(framework,
CLASS_ID, uri);
616 static void remove(
const opflex::modb::URI& uri)
618 remove(opflex::ofcore::OFFramework::defaultInstance(), uri);
638 opflex::ofcore::OFFramework& framework,
639 const std::string& policySpaceName,
640 const std::string& gbpFloodDomainName)
642 MO::remove(framework,
CLASS_ID, opflex::modb::URIBuilder().addElement(
"PolicyUniverse").addElement(
"PolicySpace").addElement(policySpaceName).addElement(
"GbpFloodDomain").addElement(gbpFloodDomainName).build());
662 const std::string& policySpaceName,
663 const std::string& gbpFloodDomainName)
665 remove(opflex::ofcore::OFFramework::defaultInstance(),policySpaceName,gbpFloodDomainName);
680 opflex::ofcore::OFFramework& framework,
681 opflex::modb::ObjectListener* listener)
683 opflex::modb::mointernal
684 ::MO::registerListener(framework, listener,
CLASS_ID);
699 opflex::modb::ObjectListener* listener)
711 opflex::ofcore::OFFramework& framework,
712 opflex::modb::ObjectListener* listener)
714 opflex::modb::mointernal
715 ::MO::unregisterListener(framework, listener,
CLASS_ID);
725 opflex::modb::ObjectListener* listener)
735 opflex::ofcore::OFFramework& framework,
736 const opflex::modb::URI& uri,
737 const boost::shared_ptr<const opflex::modb::mointernal::ObjectInstance>& oi)
738 : MO(framework,
CLASS_ID, uri, oi) { }
743 #endif // GI_GBP_FLOODDOMAIN_HPP
modelgbp::gbp::FloodDomain & unsetArpMode()
Unset arpMode in the currently-active mutator.
Definition: FloodDomain.hpp:97
static const opflex::modb::class_id_t CLASS_ID
The unique class ID for FloodDomain.
Definition: FloodDomain.hpp:45
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: FloodDomain.hpp:698
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: FloodDomain.hpp:679
static boost::optional< boost::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
boost::optional< const uint8_t > getNeighborDiscMode()
Get the value of neighborDiscMode if it has been set.
Definition: FloodDomain.hpp:228
void resolveGbpEpGroupFromNetworkRTgt(std::vector< boost::shared_ptr< modelgbp::gbp::EpGroupFromNetworkRTgt > > &out)
Resolve and retrieve all of the immediate children of type modelgbp::gbp::EpGroupFromNetworkRTgt.
Definition: FloodDomain.hpp:501
static void unregisterListener(opflex::modb::ObjectListener *listener)
Unregister a listener from updates to this class from the default framework instance.
Definition: FloodDomain.hpp:724
modelgbp::gbp::FloodDomain & setBcastFloodMode(const uint8_t newValue)
Set bcastFloodMode to the specified value in the currently-active mutator.
Definition: FloodDomain.hpp:141
const std::string & getName(const std::string &defaultValue)
Get the value of name if set, otherwise the value of default passed in.
Definition: FloodDomain.hpp:184
modelgbp::gbp::FloodDomain & setUnknownFloodMode(const uint8_t newValue)
Set unknownFloodMode to the specified value in the currently-active mutator.
Definition: FloodDomain.hpp:309
boost::optional< const uint8_t > getBcastFloodMode()
Get the value of bcastFloodMode if it has been set.
Definition: FloodDomain.hpp:116
modelgbp::gbp::FloodDomain & unsetBcastFloodMode()
Unset bcastFloodMode in the currently-active mutator.
Definition: FloodDomain.hpp:153
static boost::optional< boost::shared_ptr< modelgbp::gbp::FloodDomain > > resolve(opflex::ofcore::OFFramework &framework, const std::string &policySpaceName, const std::string &gbpFloodDomainName)
Retrieve an instance of FloodDomain from the managed object store by constructing its URI from the pa...
Definition: FloodDomain.hpp:380
static boost::optional< boost::shared_ptr< modelgbp::gbp::FloodDomainToNetworkRSrc > > resolve(opflex::ofcore::OFFramework &framework, const opflex::modb::URI &uri)
Retrieve an instance of FloodDomainToNetworkRSrc from the managed object store.
Definition: FloodDomainToNetworkRSrc.hpp:257
modelgbp::gbp::FloodDomain & unsetName()
Unset name in the currently-active mutator.
Definition: FloodDomain.hpp:209
modelgbp::gbp::FloodDomain & setArpMode(const uint8_t newValue)
Set arpMode to the specified value in the currently-active mutator.
Definition: FloodDomain.hpp:85
const uint8_t getUnknownFloodMode(const uint8_t defaultValue)
Get the value of unknownFloodMode if set, otherwise the value of default passed in.
Definition: FloodDomain.hpp:296
modelgbp::gbp::FloodDomain & setName(const std::string &newValue)
Set name to the specified value in the currently-active mutator.
Definition: FloodDomain.hpp:197
modelgbp::gbp::FloodDomain & setNeighborDiscMode(const uint8_t newValue)
Set neighborDiscMode to the specified value in the currently-active mutator.
Definition: FloodDomain.hpp:253
const uint8_t getArpMode(const uint8_t defaultValue)
Get the value of arpMode if set, otherwise the value of default passed in.
Definition: FloodDomain.hpp:72
Definition: FloodDomain.hpp:37
static boost::optional< boost::shared_ptr< modelgbp::gbpe::FloodContext > > resolve(opflex::ofcore::OFFramework &framework, const opflex::modb::URI &uri)
Retrieve an instance of FloodContext from the managed object store.
Definition: FloodContext.hpp:98
bool isArpModeSet()
Check whether arpMode has been set.
Definition: FloodDomain.hpp:51
modelgbp::gbp::FloodDomain & unsetNeighborDiscMode()
Unset neighborDiscMode in the currently-active mutator.
Definition: FloodDomain.hpp:265
const uint8_t getBcastFloodMode(const uint8_t defaultValue)
Get the value of bcastFloodMode if set, otherwise the value of default passed in. ...
Definition: FloodDomain.hpp:128
bool isNeighborDiscModeSet()
Check whether neighborDiscMode has been set.
Definition: FloodDomain.hpp:219
boost::optional< boost::shared_ptr< modelgbp::gbp::ForwardingBehavioralGroupToSubnetsRSrc > > resolveGbpForwardingBehavioralGroupToSubnetsRSrc()
Retrieve the child object with the specified naming properties.
Definition: FloodDomain.hpp:551
boost::optional< const uint8_t > getUnknownFloodMode()
Get the value of unknownFloodMode if it has been set.
Definition: FloodDomain.hpp:284
static boost::optional< boost::shared_ptr< modelgbp::gbp::FloodDomain > > resolve(const opflex::modb::URI &uri)
Retrieve an instance of FloodDomain from the managed object store using the default framework instanc...
Definition: FloodDomain.hpp:356
FloodDomain(opflex::ofcore::OFFramework &framework, const opflex::modb::URI &uri, const boost::shared_ptr< const opflex::modb::mointernal::ObjectInstance > &oi)
Construct an instance of FloodDomain.
Definition: FloodDomain.hpp:734
boost::optional< const uint8_t > getArpMode()
Get the value of arpMode if it has been set.
Definition: FloodDomain.hpp:60
bool isUnknownFloodModeSet()
Check whether unknownFloodMode has been set.
Definition: FloodDomain.hpp:275
boost::shared_ptr< modelgbp::gbp::FloodDomainToNetworkRSrc > addGbpFloodDomainToNetworkRSrc()
Create a new child object with the specified naming properties and make it a child of this object in ...
Definition: FloodDomain.hpp:532
boost::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: FloodDomain.hpp:567
boost::optional< boost::shared_ptr< modelgbp::gbp::EpGroupFromNetworkRTgt > > resolveGbpEpGroupFromNetworkRTgt(const std::string &gbpEpGroupFromNetworkRTgtSource)
Retrieve the child object with the specified naming properties.
Definition: FloodDomain.hpp:458
static void unregisterListener(opflex::ofcore::OFFramework &framework, opflex::modb::ObjectListener *listener)
Unregister a listener from updates to this class.
Definition: FloodDomain.hpp:710
boost::optional< boost::shared_ptr< modelgbp::gbpe::FloodContext > > resolveGbpeFloodContext()
Retrieve the child object with the specified naming properties.
Definition: FloodDomain.hpp:421
modelgbp::gbp::FloodDomain & unsetUnknownFloodMode()
Unset unknownFloodMode in the currently-active mutator.
Definition: FloodDomain.hpp:321
const uint8_t getNeighborDiscMode(const uint8_t defaultValue)
Get the value of neighborDiscMode if set, otherwise the value of default passed in.
Definition: FloodDomain.hpp:240
boost::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: FloodDomain.hpp:476
static boost::optional< boost::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
bool isBcastFloodModeSet()
Check whether bcastFloodMode has been set.
Definition: FloodDomain.hpp:107
bool isNameSet()
Check whether name has been set.
Definition: FloodDomain.hpp:163
boost::optional< const std::string & > getName()
Get the value of name if it has been set.
Definition: FloodDomain.hpp:172
static boost::optional< boost::shared_ptr< modelgbp::gbp::FloodDomain > > resolve(opflex::ofcore::OFFramework &framework, const opflex::modb::URI &uri)
Retrieve an instance of FloodDomain from the managed object store.
Definition: FloodDomain.hpp:338
static boost::optional< boost::shared_ptr< modelgbp::gbp::FloodDomain > > resolve(const std::string &policySpaceName, const std::string &gbpFloodDomainName)
Retrieve an instance of FloodDomain from the default managed object store by constructing its URI fro...
Definition: FloodDomain.hpp:405
boost::shared_ptr< modelgbp::gbpe::FloodContext > addGbpeFloodContext()
Create a new child object with the specified naming properties and make it a child of this object in ...
Definition: FloodDomain.hpp:437
boost::optional< boost::shared_ptr< modelgbp::gbp::FloodDomainToNetworkRSrc > > resolveGbpFloodDomainToNetworkRSrc()
Retrieve the child object with the specified naming properties.
Definition: FloodDomain.hpp:516