modelgbp Generated OpFlex Model  1.3.0
platform/Config.hpp
1 
10 #pragma once
11 #ifndef GI_PLATFORM_CONFIG_HPP
12 #define GI_PLATFORM_CONFIG_HPP
13 
14 #include <boost/optional.hpp>
15 #include "opflex/modb/URIBuilder.h"
16 #include "opflex/modb/mo-internal/MO.h"
17 /*
18  * contains: item:mclass(gbpe/SNATIPPool)
19  */
20 #include "modelgbp/gbpe/SNATIPPool.hpp"
21 /*
22  * contains: item:mclass(cdp/Config)
23  */
24 #include "modelgbp/cdp/Config.hpp"
25 /*
26  * contains: item:mclass(dfw/Config)
27  */
28 #include "modelgbp/dfw/Config.hpp"
29 /*
30  * contains: item:mclass(domain/ConfigFromConfigRTgt)
31  */
32 #include "modelgbp/domain/ConfigFromConfigRTgt.hpp"
33 /*
34  * contains: item:mclass(l2/Config)
35  */
36 #include "modelgbp/l2/Config.hpp"
37 /*
38  * contains: item:mclass(lacp/Config)
39  */
40 #include "modelgbp/lacp/Config.hpp"
41 /*
42  * contains: item:mclass(lldp/Config)
43  */
44 #include "modelgbp/lldp/Config.hpp"
45 /*
46  * contains: item:mclass(span/SrcGrp)
47  */
48 #include "modelgbp/span/SrcGrp.hpp"
49 /*
50  * contains: item:mclass(span/DstGrp)
51  */
52 #include "modelgbp/span/DstGrp.hpp"
53 /*
54  * contains: item:mclass(span/LocalEp)
55  */
56 #include "modelgbp/span/LocalEp.hpp"
57 /*
58  * contains: item:mclass(stp/Config)
59  */
60 #include "modelgbp/stp/Config.hpp"
61 
62 namespace modelgbp {
63 namespace platform {
64 
65 class Config
66  : public opflex::modb::mointernal::MO
67 {
68 public:
69 
73  static const opflex::modb::class_id_t CLASS_ID = 37;
74 
80  {
81  return getObjectInstance().isSet(1212418ul, opflex::modb::PropertyInfo::ENUM8);
82  }
83 
88  boost::optional<const uint8_t> getEncapType()
89  {
90  if (isEncapTypeSet())
91  return (const uint8_t)getObjectInstance().getUInt64(1212418ul);
92  return boost::none;
93  }
94 
100  const uint8_t getEncapType(const uint8_t defaultValue)
101  {
102  return getEncapType().get_value_or(defaultValue);
103  }
104 
113  modelgbp::platform::Config& setEncapType(const uint8_t newValue)
114  {
115  getTLMutator().modify(getClassId(), getURI())->setUInt64(1212418ul, newValue);
116  return *this;
117  }
118 
126  {
127  getTLMutator().modify(getClassId(), getURI())->unset(1212418ul, opflex::modb::PropertyInfo::ENUM8, opflex::modb::PropertyInfo::SCALAR);
128  return *this;
129  }
130 
135  bool isModeSet()
136  {
137  return getObjectInstance().isSet(1212419ul, opflex::modb::PropertyInfo::ENUM8);
138  }
139 
144  boost::optional<const uint8_t> getMode()
145  {
146  if (isModeSet())
147  return (const uint8_t)getObjectInstance().getUInt64(1212419ul);
148  return boost::none;
149  }
150 
156  const uint8_t getMode(const uint8_t defaultValue)
157  {
158  return getMode().get_value_or(defaultValue);
159  }
160 
169  modelgbp::platform::Config& setMode(const uint8_t newValue)
170  {
171  getTLMutator().modify(getClassId(), getURI())->setUInt64(1212419ul, newValue);
172  return *this;
173  }
174 
182  {
183  getTLMutator().modify(getClassId(), getURI())->unset(1212419ul, opflex::modb::PropertyInfo::ENUM8, opflex::modb::PropertyInfo::SCALAR);
184  return *this;
185  }
186 
192  {
193  return getObjectInstance().isSet(1212420ul, opflex::modb::PropertyInfo::STRING);
194  }
195 
200  boost::optional<const std::string&> getMulticastGroupIP()
201  {
202  if (isMulticastGroupIPSet())
203  return getObjectInstance().getString(1212420ul);
204  return boost::none;
205  }
206 
212  const std::string& getMulticastGroupIP(const std::string& defaultValue)
213  {
214  return getMulticastGroupIP().get_value_or(defaultValue);
215  }
216 
225  modelgbp::platform::Config& setMulticastGroupIP(const std::string& newValue)
226  {
227  getTLMutator().modify(getClassId(), getURI())->setString(1212420ul, newValue);
228  return *this;
229  }
230 
238  {
239  getTLMutator().modify(getClassId(), getURI())->unset(1212420ul, opflex::modb::PropertyInfo::STRING, opflex::modb::PropertyInfo::SCALAR);
240  return *this;
241  }
242 
247  bool isNameSet()
248  {
249  return getObjectInstance().isSet(1212417ul, opflex::modb::PropertyInfo::STRING);
250  }
251 
256  boost::optional<const std::string&> getName()
257  {
258  if (isNameSet())
259  return getObjectInstance().getString(1212417ul);
260  return boost::none;
261  }
262 
268  const std::string& getName(const std::string& defaultValue)
269  {
270  return getName().get_value_or(defaultValue);
271  }
272 
281  modelgbp::platform::Config& setName(const std::string& newValue)
282  {
283  getTLMutator().modify(getClassId(), getURI())->setString(1212417ul, newValue);
284  return *this;
285  }
286 
294  {
295  getTLMutator().modify(getClassId(), getURI())->unset(1212417ul, opflex::modb::PropertyInfo::STRING, opflex::modb::PropertyInfo::SCALAR);
296  return *this;
297  }
298 
310  static boost::optional<boost::shared_ptr<modelgbp::platform::Config> > resolve(
311  opflex::ofcore::OFFramework& framework,
312  const opflex::modb::URI& uri)
313  {
314  return opflex::modb::mointernal::MO::resolve<modelgbp::platform::Config>(framework, CLASS_ID, uri);
315  }
316 
328  static boost::optional<boost::shared_ptr<modelgbp::platform::Config> > resolve(
329  const opflex::modb::URI& uri)
330  {
331  return opflex::modb::mointernal::MO::resolve<modelgbp::platform::Config>(opflex::ofcore::OFFramework::defaultInstance(), CLASS_ID, uri);
332  }
333 
350  static boost::optional<boost::shared_ptr<modelgbp::platform::Config> > resolve(
351  opflex::ofcore::OFFramework& framework,
352  const std::string& platformConfigName)
353  {
354  return resolve(framework,opflex::modb::URIBuilder().addElement("PolicyUniverse").addElement("PlatformConfig").addElement(platformConfigName).build());
355  }
356 
372  static boost::optional<boost::shared_ptr<modelgbp::platform::Config> > resolve(
373  const std::string& platformConfigName)
374  {
375  return resolve(opflex::ofcore::OFFramework::defaultInstance(),platformConfigName);
376  }
377 
389  boost::optional<boost::shared_ptr<modelgbp::gbpe::SNATIPPool> > resolveGbpeSNATIPPool(
390  const std::string& gbpeSNATIPPoolName)
391  {
392  return modelgbp::gbpe::SNATIPPool::resolve(getFramework(), opflex::modb::URIBuilder(getURI()).addElement("GbpeSNATIPPool").addElement(gbpeSNATIPPoolName).build());
393  }
394 
407  boost::shared_ptr<modelgbp::gbpe::SNATIPPool> addGbpeSNATIPPool(
408  const std::string& gbpeSNATIPPoolName)
409  {
410  boost::shared_ptr<modelgbp::gbpe::SNATIPPool> result = addChild<modelgbp::gbpe::SNATIPPool>(
411  CLASS_ID, getURI(), 2148696099ul, 35,
412  opflex::modb::URIBuilder(getURI()).addElement("GbpeSNATIPPool").addElement(gbpeSNATIPPoolName).build()
413  );
414  result->setName(gbpeSNATIPPoolName);
415  return result;
416  }
417 
432  void resolveGbpeSNATIPPool(/* out */ std::vector<boost::shared_ptr<modelgbp::gbpe::SNATIPPool> >& out)
433  {
434  opflex::modb::mointernal::MO::resolveChildren<modelgbp::gbpe::SNATIPPool>(
435  getFramework(), CLASS_ID, getURI(), 2148696099ul, 35, out);
436  }
437 
447  boost::optional<boost::shared_ptr<modelgbp::cdp::Config> > resolveCdpConfig(
448  )
449  {
450  return modelgbp::cdp::Config::resolve(getFramework(), opflex::modb::URIBuilder(getURI()).addElement("CdpConfig").build());
451  }
452 
463  boost::shared_ptr<modelgbp::cdp::Config> addCdpConfig(
464  )
465  {
466  boost::shared_ptr<modelgbp::cdp::Config> result = addChild<modelgbp::cdp::Config>(
467  CLASS_ID, getURI(), 2148696103ul, 39,
468  opflex::modb::URIBuilder(getURI()).addElement("CdpConfig").build()
469  );
470  return result;
471  }
472 
482  boost::optional<boost::shared_ptr<modelgbp::dfw::Config> > resolveDfwConfig(
483  )
484  {
485  return modelgbp::dfw::Config::resolve(getFramework(), opflex::modb::URIBuilder(getURI()).addElement("DfwConfig").build());
486  }
487 
498  boost::shared_ptr<modelgbp::dfw::Config> addDfwConfig(
499  )
500  {
501  boost::shared_ptr<modelgbp::dfw::Config> result = addChild<modelgbp::dfw::Config>(
502  CLASS_ID, getURI(), 2148696104ul, 40,
503  opflex::modb::URIBuilder(getURI()).addElement("DfwConfig").build()
504  );
505  return result;
506  }
507 
519  boost::optional<boost::shared_ptr<modelgbp::domain::ConfigFromConfigRTgt> > resolveDomainConfigFromConfigRTgt(
520  const std::string& domainConfigFromConfigRTgtSource)
521  {
522  return modelgbp::domain::ConfigFromConfigRTgt::resolve(getFramework(), opflex::modb::URIBuilder(getURI()).addElement("DomainConfigFromConfigRTgt").addElement(domainConfigFromConfigRTgtSource).build());
523  }
524 
537  boost::shared_ptr<modelgbp::domain::ConfigFromConfigRTgt> addDomainConfigFromConfigRTgt(
538  const std::string& domainConfigFromConfigRTgtSource)
539  {
540  boost::shared_ptr<modelgbp::domain::ConfigFromConfigRTgt> result = addChild<modelgbp::domain::ConfigFromConfigRTgt>(
541  CLASS_ID, getURI(), 2148696108ul, 44,
542  opflex::modb::URIBuilder(getURI()).addElement("DomainConfigFromConfigRTgt").addElement(domainConfigFromConfigRTgtSource).build()
543  );
544  result->setSource(domainConfigFromConfigRTgtSource);
545  return result;
546  }
547 
562  void resolveDomainConfigFromConfigRTgt(/* out */ std::vector<boost::shared_ptr<modelgbp::domain::ConfigFromConfigRTgt> >& out)
563  {
564  opflex::modb::mointernal::MO::resolveChildren<modelgbp::domain::ConfigFromConfigRTgt>(
565  getFramework(), CLASS_ID, getURI(), 2148696108ul, 44, out);
566  }
567 
577  boost::optional<boost::shared_ptr<modelgbp::l2::Config> > resolveL2Config(
578  )
579  {
580  return modelgbp::l2::Config::resolve(getFramework(), opflex::modb::URIBuilder(getURI()).addElement("L2Config").build());
581  }
582 
593  boost::shared_ptr<modelgbp::l2::Config> addL2Config(
594  )
595  {
596  boost::shared_ptr<modelgbp::l2::Config> result = addChild<modelgbp::l2::Config>(
597  CLASS_ID, getURI(), 2148696110ul, 46,
598  opflex::modb::URIBuilder(getURI()).addElement("L2Config").build()
599  );
600  return result;
601  }
602 
612  boost::optional<boost::shared_ptr<modelgbp::lacp::Config> > resolveLacpConfig(
613  )
614  {
615  return modelgbp::lacp::Config::resolve(getFramework(), opflex::modb::URIBuilder(getURI()).addElement("LacpConfig").build());
616  }
617 
628  boost::shared_ptr<modelgbp::lacp::Config> addLacpConfig(
629  )
630  {
631  boost::shared_ptr<modelgbp::lacp::Config> result = addChild<modelgbp::lacp::Config>(
632  CLASS_ID, getURI(), 2148696111ul, 47,
633  opflex::modb::URIBuilder(getURI()).addElement("LacpConfig").build()
634  );
635  return result;
636  }
637 
647  boost::optional<boost::shared_ptr<modelgbp::lldp::Config> > resolveLldpConfig(
648  )
649  {
650  return modelgbp::lldp::Config::resolve(getFramework(), opflex::modb::URIBuilder(getURI()).addElement("LldpConfig").build());
651  }
652 
663  boost::shared_ptr<modelgbp::lldp::Config> addLldpConfig(
664  )
665  {
666  boost::shared_ptr<modelgbp::lldp::Config> result = addChild<modelgbp::lldp::Config>(
667  CLASS_ID, getURI(), 2148696112ul, 48,
668  opflex::modb::URIBuilder(getURI()).addElement("LldpConfig").build()
669  );
670  return result;
671  }
672 
684  boost::optional<boost::shared_ptr<modelgbp::span::SrcGrp> > resolveSpanSrcGrp(
685  const std::string& spanSrcGrpName)
686  {
687  return modelgbp::span::SrcGrp::resolve(getFramework(), opflex::modb::URIBuilder(getURI()).addElement("SpanSrcGrp").addElement(spanSrcGrpName).build());
688  }
689 
702  boost::shared_ptr<modelgbp::span::SrcGrp> addSpanSrcGrp(
703  const std::string& spanSrcGrpName)
704  {
705  boost::shared_ptr<modelgbp::span::SrcGrp> result = addChild<modelgbp::span::SrcGrp>(
706  CLASS_ID, getURI(), 2148696114ul, 50,
707  opflex::modb::URIBuilder(getURI()).addElement("SpanSrcGrp").addElement(spanSrcGrpName).build()
708  );
709  result->setName(spanSrcGrpName);
710  return result;
711  }
712 
727  void resolveSpanSrcGrp(/* out */ std::vector<boost::shared_ptr<modelgbp::span::SrcGrp> >& out)
728  {
729  opflex::modb::mointernal::MO::resolveChildren<modelgbp::span::SrcGrp>(
730  getFramework(), CLASS_ID, getURI(), 2148696114ul, 50, out);
731  }
732 
744  boost::optional<boost::shared_ptr<modelgbp::span::DstGrp> > resolveSpanDstGrp(
745  const std::string& spanDstGrpName)
746  {
747  return modelgbp::span::DstGrp::resolve(getFramework(), opflex::modb::URIBuilder(getURI()).addElement("SpanDstGrp").addElement(spanDstGrpName).build());
748  }
749 
762  boost::shared_ptr<modelgbp::span::DstGrp> addSpanDstGrp(
763  const std::string& spanDstGrpName)
764  {
765  boost::shared_ptr<modelgbp::span::DstGrp> result = addChild<modelgbp::span::DstGrp>(
766  CLASS_ID, getURI(), 2148696115ul, 51,
767  opflex::modb::URIBuilder(getURI()).addElement("SpanDstGrp").addElement(spanDstGrpName).build()
768  );
769  result->setName(spanDstGrpName);
770  return result;
771  }
772 
787  void resolveSpanDstGrp(/* out */ std::vector<boost::shared_ptr<modelgbp::span::DstGrp> >& out)
788  {
789  opflex::modb::mointernal::MO::resolveChildren<modelgbp::span::DstGrp>(
790  getFramework(), CLASS_ID, getURI(), 2148696115ul, 51, out);
791  }
792 
804  boost::optional<boost::shared_ptr<modelgbp::span::LocalEp> > resolveSpanLocalEp(
805  const std::string& spanLocalEpName)
806  {
807  return modelgbp::span::LocalEp::resolve(getFramework(), opflex::modb::URIBuilder(getURI()).addElement("SpanLocalEp").addElement(spanLocalEpName).build());
808  }
809 
822  boost::shared_ptr<modelgbp::span::LocalEp> addSpanLocalEp(
823  const std::string& spanLocalEpName)
824  {
825  boost::shared_ptr<modelgbp::span::LocalEp> result = addChild<modelgbp::span::LocalEp>(
826  CLASS_ID, getURI(), 2148696116ul, 52,
827  opflex::modb::URIBuilder(getURI()).addElement("SpanLocalEp").addElement(spanLocalEpName).build()
828  );
829  result->setName(spanLocalEpName);
830  return result;
831  }
832 
847  void resolveSpanLocalEp(/* out */ std::vector<boost::shared_ptr<modelgbp::span::LocalEp> >& out)
848  {
849  opflex::modb::mointernal::MO::resolveChildren<modelgbp::span::LocalEp>(
850  getFramework(), CLASS_ID, getURI(), 2148696116ul, 52, out);
851  }
852 
862  boost::optional<boost::shared_ptr<modelgbp::stp::Config> > resolveStpConfig(
863  )
864  {
865  return modelgbp::stp::Config::resolve(getFramework(), opflex::modb::URIBuilder(getURI()).addElement("StpConfig").build());
866  }
867 
878  boost::shared_ptr<modelgbp::stp::Config> addStpConfig(
879  )
880  {
881  boost::shared_ptr<modelgbp::stp::Config> result = addChild<modelgbp::stp::Config>(
882  CLASS_ID, getURI(), 2148696127ul, 63,
883  opflex::modb::URIBuilder(getURI()).addElement("StpConfig").build()
884  );
885  return result;
886  }
887 
896  void remove()
897  {
898  getTLMutator().remove(CLASS_ID, getURI());
899  }
900 
911  static void remove(opflex::ofcore::OFFramework& framework,
912  const opflex::modb::URI& uri)
913  {
914  MO::remove(framework, CLASS_ID, uri);
915  }
916 
927  static void remove(const opflex::modb::URI& uri)
928  {
929  remove(opflex::ofcore::OFFramework::defaultInstance(), uri);
930  }
931 
946  static void remove(
947  opflex::ofcore::OFFramework& framework,
948  const std::string& platformConfigName)
949  {
950  MO::remove(framework, CLASS_ID, opflex::modb::URIBuilder().addElement("PolicyUniverse").addElement("PlatformConfig").addElement(platformConfigName).build());
951  }
952 
967  static void remove(
968  const std::string& platformConfigName)
969  {
970  remove(opflex::ofcore::OFFramework::defaultInstance(),platformConfigName);
971  }
972 
984  static void registerListener(
985  opflex::ofcore::OFFramework& framework,
986  opflex::modb::ObjectListener* listener)
987  {
988  opflex::modb::mointernal
989  ::MO::registerListener(framework, listener, CLASS_ID);
990  }
991 
1003  static void registerListener(
1004  opflex::modb::ObjectListener* listener)
1005  {
1006  registerListener(opflex::ofcore::OFFramework::defaultInstance(), listener);
1007  }
1008 
1015  static void unregisterListener(
1016  opflex::ofcore::OFFramework& framework,
1017  opflex::modb::ObjectListener* listener)
1018  {
1019  opflex::modb::mointernal
1020  ::MO::unregisterListener(framework, listener, CLASS_ID);
1021  }
1022 
1029  static void unregisterListener(
1030  opflex::modb::ObjectListener* listener)
1031  {
1032  unregisterListener(opflex::ofcore::OFFramework::defaultInstance(), listener);
1033  }
1034 
1040  opflex::ofcore::OFFramework& framework,
1041  const opflex::modb::URI& uri,
1042  const boost::shared_ptr<const opflex::modb::mointernal::ObjectInstance>& oi)
1043  : MO(framework, CLASS_ID, uri, oi) { }
1044 }; // class Config
1045 
1046 } // namespace platform
1047 } // namespace modelgbp
1048 #endif // GI_PLATFORM_CONFIG_HPP
boost::shared_ptr< modelgbp::lacp::Config > addLacpConfig()
Create a new child object with the specified naming properties and make it a child of this object in ...
Definition: platform/Config.hpp:628
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: platform/Config.hpp:1003
boost::optional< boost::shared_ptr< modelgbp::lldp::Config > > resolveLldpConfig()
Retrieve the child object with the specified naming properties.
Definition: platform/Config.hpp:647
boost::optional< const uint8_t > getEncapType()
Get the value of encapType if it has been set.
Definition: platform/Config.hpp:88
boost::shared_ptr< modelgbp::l2::Config > addL2Config()
Create a new child object with the specified naming properties and make it a child of this object in ...
Definition: platform/Config.hpp:593
boost::optional< boost::shared_ptr< modelgbp::lacp::Config > > resolveLacpConfig()
Retrieve the child object with the specified naming properties.
Definition: platform/Config.hpp:612
void resolveSpanLocalEp(std::vector< boost::shared_ptr< modelgbp::span::LocalEp > > &out)
Resolve and retrieve all of the immediate children of type modelgbp::span::LocalEp.
Definition: platform/Config.hpp:847
const uint8_t getEncapType(const uint8_t defaultValue)
Get the value of encapType if set, otherwise the value of default passed in.
Definition: platform/Config.hpp:100
static void unregisterListener(opflex::modb::ObjectListener *listener)
Unregister a listener from updates to this class from the default framework instance.
Definition: platform/Config.hpp:1029
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: platform/Config.hpp:984
modelgbp::platform::Config & setMode(const uint8_t newValue)
Set mode to the specified value in the currently-active mutator.
Definition: platform/Config.hpp:169
boost::shared_ptr< modelgbp::lldp::Config > addLldpConfig()
Create a new child object with the specified naming properties and make it a child of this object in ...
Definition: platform/Config.hpp:663
boost::optional< const std::string & > getMulticastGroupIP()
Get the value of multicastGroupIP if it has been set.
Definition: platform/Config.hpp:200
modelgbp::platform::Config & setMulticastGroupIP(const std::string &newValue)
Set multicastGroupIP to the specified value in the currently-active mutator.
Definition: platform/Config.hpp:225
static boost::optional< boost::shared_ptr< modelgbp::platform::Config > > resolve(opflex::ofcore::OFFramework &framework, const std::string &platformConfigName)
Retrieve an instance of Config from the managed object store by constructing its URI from the path el...
Definition: platform/Config.hpp:350
const std::string & getName(const std::string &defaultValue)
Get the value of name if set, otherwise the value of default passed in.
Definition: platform/Config.hpp:268
boost::optional< boost::shared_ptr< modelgbp::domain::ConfigFromConfigRTgt > > resolveDomainConfigFromConfigRTgt(const std::string &domainConfigFromConfigRTgtSource)
Retrieve the child object with the specified naming properties.
Definition: platform/Config.hpp:519
boost::shared_ptr< modelgbp::stp::Config > addStpConfig()
Create a new child object with the specified naming properties and make it a child of this object in ...
Definition: platform/Config.hpp:878
void resolveSpanSrcGrp(std::vector< boost::shared_ptr< modelgbp::span::SrcGrp > > &out)
Resolve and retrieve all of the immediate children of type modelgbp::span::SrcGrp.
Definition: platform/Config.hpp:727
boost::optional< boost::shared_ptr< modelgbp::dfw::Config > > resolveDfwConfig()
Retrieve the child object with the specified naming properties.
Definition: platform/Config.hpp:482
static boost::optional< boost::shared_ptr< modelgbp::span::SrcGrp > > resolve(opflex::ofcore::OFFramework &framework, const opflex::modb::URI &uri)
Retrieve an instance of SrcGrp from the managed object store.
Definition: SrcGrp.hpp:218
boost::shared_ptr< modelgbp::domain::ConfigFromConfigRTgt > addDomainConfigFromConfigRTgt(const std::string &domainConfigFromConfigRTgtSource)
Create a new child object with the specified naming properties and make it a child of this object in ...
Definition: platform/Config.hpp:537
boost::optional< boost::shared_ptr< modelgbp::span::SrcGrp > > resolveSpanSrcGrp(const std::string &spanSrcGrpName)
Retrieve the child object with the specified naming properties.
Definition: platform/Config.hpp:684
boost::optional< const uint8_t > getMode()
Get the value of mode if it has been set.
Definition: platform/Config.hpp:144
boost::shared_ptr< modelgbp::gbpe::SNATIPPool > addGbpeSNATIPPool(const std::string &gbpeSNATIPPoolName)
Create a new child object with the specified naming properties and make it a child of this object in ...
Definition: platform/Config.hpp:407
static boost::optional< boost::shared_ptr< modelgbp::platform::Config > > resolve(opflex::ofcore::OFFramework &framework, const opflex::modb::URI &uri)
Retrieve an instance of Config from the managed object store.
Definition: platform/Config.hpp:310
static boost::optional< boost::shared_ptr< modelgbp::span::LocalEp > > resolve(opflex::ofcore::OFFramework &framework, const opflex::modb::URI &uri)
Retrieve an instance of LocalEp from the managed object store.
Definition: LocalEp.hpp:162
static boost::optional< boost::shared_ptr< modelgbp::lldp::Config > > resolve(opflex::ofcore::OFFramework &framework, const opflex::modb::URI &uri)
Retrieve an instance of Config from the managed object store.
Definition: lldp/Config.hpp:210
bool isModeSet()
Check whether mode has been set.
Definition: platform/Config.hpp:135
void resolveGbpeSNATIPPool(std::vector< boost::shared_ptr< modelgbp::gbpe::SNATIPPool > > &out)
Resolve and retrieve all of the immediate children of type modelgbp::gbpe::SNATIPPool.
Definition: platform/Config.hpp:432
Definition: platform/Config.hpp:65
boost::shared_ptr< modelgbp::span::LocalEp > addSpanLocalEp(const std::string &spanLocalEpName)
Create a new child object with the specified naming properties and make it a child of this object in ...
Definition: platform/Config.hpp:822
static void unregisterListener(opflex::ofcore::OFFramework &framework, opflex::modb::ObjectListener *listener)
Unregister a listener from updates to this class.
Definition: platform/Config.hpp:1015
static boost::optional< boost::shared_ptr< modelgbp::gbpe::SNATIPPool > > resolve(opflex::ofcore::OFFramework &framework, const opflex::modb::URI &uri)
Retrieve an instance of SNATIPPool from the managed object store.
Definition: SNATIPPool.hpp:322
void resolveDomainConfigFromConfigRTgt(std::vector< boost::shared_ptr< modelgbp::domain::ConfigFromConfigRTgt > > &out)
Resolve and retrieve all of the immediate children of type modelgbp::domain::ConfigFromConfigRTgt.
Definition: platform/Config.hpp:562
static boost::optional< boost::shared_ptr< modelgbp::platform::Config > > resolve(const std::string &platformConfigName)
Retrieve an instance of Config from the default managed object store by constructing its URI from the...
Definition: platform/Config.hpp:372
static boost::optional< boost::shared_ptr< modelgbp::l2::Config > > resolve(opflex::ofcore::OFFramework &framework, const opflex::modb::URI &uri)
Retrieve an instance of Config from the managed object store.
Definition: l2/Config.hpp:154
static boost::optional< boost::shared_ptr< modelgbp::domain::ConfigFromConfigRTgt > > resolve(opflex::ofcore::OFFramework &framework, const opflex::modb::URI &uri)
Retrieve an instance of ConfigFromConfigRTgt from the managed object store.
Definition: ConfigFromConfigRTgt.hpp:210
boost::shared_ptr< modelgbp::cdp::Config > addCdpConfig()
Create a new child object with the specified naming properties and make it a child of this object in ...
Definition: platform/Config.hpp:463
const uint8_t getMode(const uint8_t defaultValue)
Get the value of mode if set, otherwise the value of default passed in.
Definition: platform/Config.hpp:156
static const opflex::modb::class_id_t CLASS_ID
The unique class ID for Config.
Definition: platform/Config.hpp:73
boost::shared_ptr< modelgbp::dfw::Config > addDfwConfig()
Create a new child object with the specified naming properties and make it a child of this object in ...
Definition: platform/Config.hpp:498
modelgbp::platform::Config & unsetMode()
Unset mode in the currently-active mutator.
Definition: platform/Config.hpp:181
static boost::optional< boost::shared_ptr< modelgbp::span::DstGrp > > resolve(opflex::ofcore::OFFramework &framework, const opflex::modb::URI &uri)
Retrieve an instance of DstGrp from the managed object store.
Definition: DstGrp.hpp:106
bool isNameSet()
Check whether name has been set.
Definition: platform/Config.hpp:247
bool isMulticastGroupIPSet()
Check whether multicastGroupIP has been set.
Definition: platform/Config.hpp:191
boost::shared_ptr< modelgbp::span::SrcGrp > addSpanSrcGrp(const std::string &spanSrcGrpName)
Create a new child object with the specified naming properties and make it a child of this object in ...
Definition: platform/Config.hpp:702
boost::shared_ptr< modelgbp::span::DstGrp > addSpanDstGrp(const std::string &spanDstGrpName)
Create a new child object with the specified naming properties and make it a child of this object in ...
Definition: platform/Config.hpp:762
boost::optional< boost::shared_ptr< modelgbp::span::DstGrp > > resolveSpanDstGrp(const std::string &spanDstGrpName)
Retrieve the child object with the specified naming properties.
Definition: platform/Config.hpp:744
static boost::optional< boost::shared_ptr< modelgbp::stp::Config > > resolve(opflex::ofcore::OFFramework &framework, const opflex::modb::URI &uri)
Retrieve an instance of Config from the managed object store.
Definition: stp/Config.hpp:210
boost::optional< boost::shared_ptr< modelgbp::span::LocalEp > > resolveSpanLocalEp(const std::string &spanLocalEpName)
Retrieve the child object with the specified naming properties.
Definition: platform/Config.hpp:804
boost::optional< const std::string & > getName()
Get the value of name if it has been set.
Definition: platform/Config.hpp:256
const std::string & getMulticastGroupIP(const std::string &defaultValue)
Get the value of multicastGroupIP if set, otherwise the value of default passed in.
Definition: platform/Config.hpp:212
static boost::optional< boost::shared_ptr< modelgbp::platform::Config > > resolve(const opflex::modb::URI &uri)
Retrieve an instance of Config from the managed object store using the default framework instance...
Definition: platform/Config.hpp:328
boost::optional< boost::shared_ptr< modelgbp::cdp::Config > > resolveCdpConfig()
Retrieve the child object with the specified naming properties.
Definition: platform/Config.hpp:447
modelgbp::platform::Config & unsetEncapType()
Unset encapType in the currently-active mutator.
Definition: platform/Config.hpp:125
boost::optional< boost::shared_ptr< modelgbp::l2::Config > > resolveL2Config()
Retrieve the child object with the specified naming properties.
Definition: platform/Config.hpp:577
boost::optional< boost::shared_ptr< modelgbp::gbpe::SNATIPPool > > resolveGbpeSNATIPPool(const std::string &gbpeSNATIPPoolName)
Retrieve the child object with the specified naming properties.
Definition: platform/Config.hpp:389
modelgbp::platform::Config & unsetMulticastGroupIP()
Unset multicastGroupIP in the currently-active mutator.
Definition: platform/Config.hpp:237
modelgbp::platform::Config & setEncapType(const uint8_t newValue)
Set encapType to the specified value in the currently-active mutator.
Definition: platform/Config.hpp:113
modelgbp::platform::Config & unsetName()
Unset name in the currently-active mutator.
Definition: platform/Config.hpp:293
void resolveSpanDstGrp(std::vector< boost::shared_ptr< modelgbp::span::DstGrp > > &out)
Resolve and retrieve all of the immediate children of type modelgbp::span::DstGrp.
Definition: platform/Config.hpp:787
bool isEncapTypeSet()
Check whether encapType has been set.
Definition: platform/Config.hpp:79
Config(opflex::ofcore::OFFramework &framework, const opflex::modb::URI &uri, const boost::shared_ptr< const opflex::modb::mointernal::ObjectInstance > &oi)
Construct an instance of Config.
Definition: platform/Config.hpp:1039
static boost::optional< boost::shared_ptr< modelgbp::cdp::Config > > resolve(opflex::ofcore::OFFramework &framework, const opflex::modb::URI &uri)
Retrieve an instance of Config from the managed object store.
Definition: cdp/Config.hpp:154
boost::optional< boost::shared_ptr< modelgbp::stp::Config > > resolveStpConfig()
Retrieve the child object with the specified naming properties.
Definition: platform/Config.hpp:862
modelgbp::platform::Config & setName(const std::string &newValue)
Set name to the specified value in the currently-active mutator.
Definition: platform/Config.hpp:281
static boost::optional< boost::shared_ptr< modelgbp::dfw::Config > > resolve(opflex::ofcore::OFFramework &framework, const opflex::modb::URI &uri)
Retrieve an instance of Config from the managed object store.
Definition: dfw/Config.hpp:154
static boost::optional< boost::shared_ptr< modelgbp::lacp::Config > > resolve(opflex::ofcore::OFFramework &framework, const opflex::modb::URI &uri)
Retrieve an instance of Config from the managed object store.
Definition: lacp/Config.hpp:322