modelgbp Generated OpFlex Model  1.9.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 = 51;
74 
80  {
81  return getObjectInstance().isSet(1671170ul, opflex::modb::PropertyInfo::ENUM8);
82  }
83 
88  boost::optional<const uint8_t> getEncapType()
89  {
90  if (isEncapTypeSet())
91  return (const uint8_t)getObjectInstance().getUInt64(1671170ul);
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(1671170ul, newValue);
116  return *this;
117  }
118 
126  {
127  getTLMutator().modify(getClassId(), getURI())->unset(1671170ul, opflex::modb::PropertyInfo::ENUM8, opflex::modb::PropertyInfo::SCALAR);
128  return *this;
129  }
130 
136  {
137  return getObjectInstance().isSet(1671173ul, opflex::modb::PropertyInfo::ENUM8);
138  }
139 
144  boost::optional<const uint8_t> getInventoryType()
145  {
146  if (isInventoryTypeSet())
147  return (const uint8_t)getObjectInstance().getUInt64(1671173ul);
148  return boost::none;
149  }
150 
156  const uint8_t getInventoryType(const uint8_t defaultValue)
157  {
158  return getInventoryType().get_value_or(defaultValue);
159  }
160 
170  {
171  getTLMutator().modify(getClassId(), getURI())->setUInt64(1671173ul, newValue);
172  return *this;
173  }
174 
182  {
183  getTLMutator().modify(getClassId(), getURI())->unset(1671173ul, opflex::modb::PropertyInfo::ENUM8, opflex::modb::PropertyInfo::SCALAR);
184  return *this;
185  }
186 
191  bool isModeSet()
192  {
193  return getObjectInstance().isSet(1671171ul, opflex::modb::PropertyInfo::ENUM8);
194  }
195 
200  boost::optional<const uint8_t> getMode()
201  {
202  if (isModeSet())
203  return (const uint8_t)getObjectInstance().getUInt64(1671171ul);
204  return boost::none;
205  }
206 
212  const uint8_t getMode(const uint8_t defaultValue)
213  {
214  return getMode().get_value_or(defaultValue);
215  }
216 
225  modelgbp::platform::Config& setMode(const uint8_t newValue)
226  {
227  getTLMutator().modify(getClassId(), getURI())->setUInt64(1671171ul, newValue);
228  return *this;
229  }
230 
238  {
239  getTLMutator().modify(getClassId(), getURI())->unset(1671171ul, opflex::modb::PropertyInfo::ENUM8, opflex::modb::PropertyInfo::SCALAR);
240  return *this;
241  }
242 
248  {
249  return getObjectInstance().isSet(1671172ul, opflex::modb::PropertyInfo::STRING);
250  }
251 
256  boost::optional<const std::string&> getMulticastGroupIP()
257  {
258  if (isMulticastGroupIPSet())
259  return getObjectInstance().getString(1671172ul);
260  return boost::none;
261  }
262 
268  const std::string& getMulticastGroupIP(const std::string& defaultValue)
269  {
270  return getMulticastGroupIP().get_value_or(defaultValue);
271  }
272 
281  modelgbp::platform::Config& setMulticastGroupIP(const std::string& newValue)
282  {
283  getTLMutator().modify(getClassId(), getURI())->setString(1671172ul, newValue);
284  return *this;
285  }
286 
294  {
295  getTLMutator().modify(getClassId(), getURI())->unset(1671172ul, opflex::modb::PropertyInfo::STRING, opflex::modb::PropertyInfo::SCALAR);
296  return *this;
297  }
298 
303  bool isNameSet()
304  {
305  return getObjectInstance().isSet(1671169ul, opflex::modb::PropertyInfo::STRING);
306  }
307 
312  boost::optional<const std::string&> getName()
313  {
314  if (isNameSet())
315  return getObjectInstance().getString(1671169ul);
316  return boost::none;
317  }
318 
324  const std::string& getName(const std::string& defaultValue)
325  {
326  return getName().get_value_or(defaultValue);
327  }
328 
337  modelgbp::platform::Config& setName(const std::string& newValue)
338  {
339  getTLMutator().modify(getClassId(), getURI())->setString(1671169ul, newValue);
340  return *this;
341  }
342 
350  {
351  getTLMutator().modify(getClassId(), getURI())->unset(1671169ul, opflex::modb::PropertyInfo::STRING, opflex::modb::PropertyInfo::SCALAR);
352  return *this;
353  }
354 
366  static boost::optional<OF_SHARED_PTR<modelgbp::platform::Config> > resolve(
367  opflex::ofcore::OFFramework& framework,
368  const opflex::modb::URI& uri)
369  {
370  return opflex::modb::mointernal::MO::resolve<modelgbp::platform::Config>(framework, CLASS_ID, uri);
371  }
372 
384  static boost::optional<OF_SHARED_PTR<modelgbp::platform::Config> > resolve(
385  const opflex::modb::URI& uri)
386  {
387  return opflex::modb::mointernal::MO::resolve<modelgbp::platform::Config>(opflex::ofcore::OFFramework::defaultInstance(), CLASS_ID, uri);
388  }
389 
406  static boost::optional<OF_SHARED_PTR<modelgbp::platform::Config> > resolve(
407  opflex::ofcore::OFFramework& framework,
408  const std::string& platformConfigName)
409  {
410  return resolve(framework,opflex::modb::URIBuilder().addElement("PolicyUniverse").addElement("PlatformConfig").addElement(platformConfigName).build());
411  }
412 
428  static boost::optional<OF_SHARED_PTR<modelgbp::platform::Config> > resolve(
429  const std::string& platformConfigName)
430  {
431  return resolve(opflex::ofcore::OFFramework::defaultInstance(),platformConfigName);
432  }
433 
445  boost::optional<OF_SHARED_PTR<modelgbp::gbpe::SNATIPPool> > resolveGbpeSNATIPPool(
446  const std::string& gbpeSNATIPPoolName)
447  {
448  return modelgbp::gbpe::SNATIPPool::resolve(getFramework(), opflex::modb::URIBuilder(getURI()).addElement("GbpeSNATIPPool").addElement(gbpeSNATIPPoolName).build());
449  }
450 
463  OF_SHARED_PTR<modelgbp::gbpe::SNATIPPool> addGbpeSNATIPPool(
464  const std::string& gbpeSNATIPPoolName)
465  {
466  OF_SHARED_PTR<modelgbp::gbpe::SNATIPPool> result = addChild<modelgbp::gbpe::SNATIPPool>(
467  CLASS_ID, getURI(), 2149154862ul, 46,
468  opflex::modb::URIBuilder(getURI()).addElement("GbpeSNATIPPool").addElement(gbpeSNATIPPoolName).build()
469  );
470  result->setName(gbpeSNATIPPoolName);
471  return result;
472  }
473 
488  void resolveGbpeSNATIPPool(/* out */ std::vector<OF_SHARED_PTR<modelgbp::gbpe::SNATIPPool> >& out)
489  {
490  opflex::modb::mointernal::MO::resolveChildren<modelgbp::gbpe::SNATIPPool>(
491  getFramework(), CLASS_ID, getURI(), 2149154862ul, 46, out);
492  }
493 
503  boost::optional<OF_SHARED_PTR<modelgbp::cdp::Config> > resolveCdpConfig(
504  )
505  {
506  return modelgbp::cdp::Config::resolve(getFramework(), opflex::modb::URIBuilder(getURI()).addElement("CdpConfig").build());
507  }
508 
519  OF_SHARED_PTR<modelgbp::cdp::Config> addCdpConfig(
520  )
521  {
522  OF_SHARED_PTR<modelgbp::cdp::Config> result = addChild<modelgbp::cdp::Config>(
523  CLASS_ID, getURI(), 2149154869ul, 53,
524  opflex::modb::URIBuilder(getURI()).addElement("CdpConfig").build()
525  );
526  return result;
527  }
528 
538  boost::optional<OF_SHARED_PTR<modelgbp::dfw::Config> > resolveDfwConfig(
539  )
540  {
541  return modelgbp::dfw::Config::resolve(getFramework(), opflex::modb::URIBuilder(getURI()).addElement("DfwConfig").build());
542  }
543 
554  OF_SHARED_PTR<modelgbp::dfw::Config> addDfwConfig(
555  )
556  {
557  OF_SHARED_PTR<modelgbp::dfw::Config> result = addChild<modelgbp::dfw::Config>(
558  CLASS_ID, getURI(), 2149154870ul, 54,
559  opflex::modb::URIBuilder(getURI()).addElement("DfwConfig").build()
560  );
561  return result;
562  }
563 
575  boost::optional<OF_SHARED_PTR<modelgbp::domain::ConfigFromConfigRTgt> > resolveDomainConfigFromConfigRTgt(
576  const std::string& domainConfigFromConfigRTgtSource)
577  {
578  return modelgbp::domain::ConfigFromConfigRTgt::resolve(getFramework(), opflex::modb::URIBuilder(getURI()).addElement("DomainConfigFromConfigRTgt").addElement(domainConfigFromConfigRTgtSource).build());
579  }
580 
593  OF_SHARED_PTR<modelgbp::domain::ConfigFromConfigRTgt> addDomainConfigFromConfigRTgt(
594  const std::string& domainConfigFromConfigRTgtSource)
595  {
596  OF_SHARED_PTR<modelgbp::domain::ConfigFromConfigRTgt> result = addChild<modelgbp::domain::ConfigFromConfigRTgt>(
597  CLASS_ID, getURI(), 2149154874ul, 58,
598  opflex::modb::URIBuilder(getURI()).addElement("DomainConfigFromConfigRTgt").addElement(domainConfigFromConfigRTgtSource).build()
599  );
600  result->setSource(domainConfigFromConfigRTgtSource);
601  return result;
602  }
603 
618  void resolveDomainConfigFromConfigRTgt(/* out */ std::vector<OF_SHARED_PTR<modelgbp::domain::ConfigFromConfigRTgt> >& out)
619  {
620  opflex::modb::mointernal::MO::resolveChildren<modelgbp::domain::ConfigFromConfigRTgt>(
621  getFramework(), CLASS_ID, getURI(), 2149154874ul, 58, out);
622  }
623 
633  boost::optional<OF_SHARED_PTR<modelgbp::l2::Config> > resolveL2Config(
634  )
635  {
636  return modelgbp::l2::Config::resolve(getFramework(), opflex::modb::URIBuilder(getURI()).addElement("L2Config").build());
637  }
638 
649  OF_SHARED_PTR<modelgbp::l2::Config> addL2Config(
650  )
651  {
652  OF_SHARED_PTR<modelgbp::l2::Config> result = addChild<modelgbp::l2::Config>(
653  CLASS_ID, getURI(), 2149154882ul, 66,
654  opflex::modb::URIBuilder(getURI()).addElement("L2Config").build()
655  );
656  return result;
657  }
658 
668  boost::optional<OF_SHARED_PTR<modelgbp::lacp::Config> > resolveLacpConfig(
669  )
670  {
671  return modelgbp::lacp::Config::resolve(getFramework(), opflex::modb::URIBuilder(getURI()).addElement("LacpConfig").build());
672  }
673 
684  OF_SHARED_PTR<modelgbp::lacp::Config> addLacpConfig(
685  )
686  {
687  OF_SHARED_PTR<modelgbp::lacp::Config> result = addChild<modelgbp::lacp::Config>(
688  CLASS_ID, getURI(), 2149154883ul, 67,
689  opflex::modb::URIBuilder(getURI()).addElement("LacpConfig").build()
690  );
691  return result;
692  }
693 
703  boost::optional<OF_SHARED_PTR<modelgbp::lldp::Config> > resolveLldpConfig(
704  )
705  {
706  return modelgbp::lldp::Config::resolve(getFramework(), opflex::modb::URIBuilder(getURI()).addElement("LldpConfig").build());
707  }
708 
719  OF_SHARED_PTR<modelgbp::lldp::Config> addLldpConfig(
720  )
721  {
722  OF_SHARED_PTR<modelgbp::lldp::Config> result = addChild<modelgbp::lldp::Config>(
723  CLASS_ID, getURI(), 2149154884ul, 68,
724  opflex::modb::URIBuilder(getURI()).addElement("LldpConfig").build()
725  );
726  return result;
727  }
728 
740  boost::optional<OF_SHARED_PTR<modelgbp::span::SrcGrp> > resolveSpanSrcGrp(
741  const std::string& spanSrcGrpName)
742  {
743  return modelgbp::span::SrcGrp::resolve(getFramework(), opflex::modb::URIBuilder(getURI()).addElement("SpanSrcGrp").addElement(spanSrcGrpName).build());
744  }
745 
758  OF_SHARED_PTR<modelgbp::span::SrcGrp> addSpanSrcGrp(
759  const std::string& spanSrcGrpName)
760  {
761  OF_SHARED_PTR<modelgbp::span::SrcGrp> result = addChild<modelgbp::span::SrcGrp>(
762  CLASS_ID, getURI(), 2149154886ul, 70,
763  opflex::modb::URIBuilder(getURI()).addElement("SpanSrcGrp").addElement(spanSrcGrpName).build()
764  );
765  result->setName(spanSrcGrpName);
766  return result;
767  }
768 
783  void resolveSpanSrcGrp(/* out */ std::vector<OF_SHARED_PTR<modelgbp::span::SrcGrp> >& out)
784  {
785  opflex::modb::mointernal::MO::resolveChildren<modelgbp::span::SrcGrp>(
786  getFramework(), CLASS_ID, getURI(), 2149154886ul, 70, out);
787  }
788 
800  boost::optional<OF_SHARED_PTR<modelgbp::span::DstGrp> > resolveSpanDstGrp(
801  const std::string& spanDstGrpName)
802  {
803  return modelgbp::span::DstGrp::resolve(getFramework(), opflex::modb::URIBuilder(getURI()).addElement("SpanDstGrp").addElement(spanDstGrpName).build());
804  }
805 
818  OF_SHARED_PTR<modelgbp::span::DstGrp> addSpanDstGrp(
819  const std::string& spanDstGrpName)
820  {
821  OF_SHARED_PTR<modelgbp::span::DstGrp> result = addChild<modelgbp::span::DstGrp>(
822  CLASS_ID, getURI(), 2149154887ul, 71,
823  opflex::modb::URIBuilder(getURI()).addElement("SpanDstGrp").addElement(spanDstGrpName).build()
824  );
825  result->setName(spanDstGrpName);
826  return result;
827  }
828 
843  void resolveSpanDstGrp(/* out */ std::vector<OF_SHARED_PTR<modelgbp::span::DstGrp> >& out)
844  {
845  opflex::modb::mointernal::MO::resolveChildren<modelgbp::span::DstGrp>(
846  getFramework(), CLASS_ID, getURI(), 2149154887ul, 71, out);
847  }
848 
860  boost::optional<OF_SHARED_PTR<modelgbp::span::LocalEp> > resolveSpanLocalEp(
861  const std::string& spanLocalEpName)
862  {
863  return modelgbp::span::LocalEp::resolve(getFramework(), opflex::modb::URIBuilder(getURI()).addElement("SpanLocalEp").addElement(spanLocalEpName).build());
864  }
865 
878  OF_SHARED_PTR<modelgbp::span::LocalEp> addSpanLocalEp(
879  const std::string& spanLocalEpName)
880  {
881  OF_SHARED_PTR<modelgbp::span::LocalEp> result = addChild<modelgbp::span::LocalEp>(
882  CLASS_ID, getURI(), 2149154888ul, 72,
883  opflex::modb::URIBuilder(getURI()).addElement("SpanLocalEp").addElement(spanLocalEpName).build()
884  );
885  result->setName(spanLocalEpName);
886  return result;
887  }
888 
903  void resolveSpanLocalEp(/* out */ std::vector<OF_SHARED_PTR<modelgbp::span::LocalEp> >& out)
904  {
905  opflex::modb::mointernal::MO::resolveChildren<modelgbp::span::LocalEp>(
906  getFramework(), CLASS_ID, getURI(), 2149154888ul, 72, out);
907  }
908 
918  boost::optional<OF_SHARED_PTR<modelgbp::stp::Config> > resolveStpConfig(
919  )
920  {
921  return modelgbp::stp::Config::resolve(getFramework(), opflex::modb::URIBuilder(getURI()).addElement("StpConfig").build());
922  }
923 
934  OF_SHARED_PTR<modelgbp::stp::Config> addStpConfig(
935  )
936  {
937  OF_SHARED_PTR<modelgbp::stp::Config> result = addChild<modelgbp::stp::Config>(
938  CLASS_ID, getURI(), 2149154899ul, 83,
939  opflex::modb::URIBuilder(getURI()).addElement("StpConfig").build()
940  );
941  return result;
942  }
943 
952  void remove()
953  {
954  getTLMutator().remove(CLASS_ID, getURI());
955  }
956 
967  static void remove(opflex::ofcore::OFFramework& framework,
968  const opflex::modb::URI& uri)
969  {
970  MO::remove(framework, CLASS_ID, uri);
971  }
972 
983  static void remove(const opflex::modb::URI& uri)
984  {
985  remove(opflex::ofcore::OFFramework::defaultInstance(), uri);
986  }
987 
1002  static void remove(
1003  opflex::ofcore::OFFramework& framework,
1004  const std::string& platformConfigName)
1005  {
1006  MO::remove(framework, CLASS_ID, opflex::modb::URIBuilder().addElement("PolicyUniverse").addElement("PlatformConfig").addElement(platformConfigName).build());
1007  }
1008 
1023  static void remove(
1024  const std::string& platformConfigName)
1025  {
1026  remove(opflex::ofcore::OFFramework::defaultInstance(),platformConfigName);
1027  }
1028 
1040  static void registerListener(
1041  opflex::ofcore::OFFramework& framework,
1042  opflex::modb::ObjectListener* listener)
1043  {
1044  opflex::modb::mointernal
1045  ::MO::registerListener(framework, listener, CLASS_ID);
1046  }
1047 
1059  static void registerListener(
1060  opflex::modb::ObjectListener* listener)
1061  {
1062  registerListener(opflex::ofcore::OFFramework::defaultInstance(), listener);
1063  }
1064 
1071  static void unregisterListener(
1072  opflex::ofcore::OFFramework& framework,
1073  opflex::modb::ObjectListener* listener)
1074  {
1075  opflex::modb::mointernal
1076  ::MO::unregisterListener(framework, listener, CLASS_ID);
1077  }
1078 
1085  static void unregisterListener(
1086  opflex::modb::ObjectListener* listener)
1087  {
1088  unregisterListener(opflex::ofcore::OFFramework::defaultInstance(), listener);
1089  }
1090 
1096  opflex::ofcore::OFFramework& framework,
1097  const opflex::modb::URI& uri,
1098  const OF_SHARED_PTR<const opflex::modb::mointernal::ObjectInstance>& oi)
1099  : MO(framework, CLASS_ID, uri, oi) { }
1100 }; // class Config
1101 
1102 } // namespace platform
1103 } // namespace modelgbp
1104 #endif // GI_PLATFORM_CONFIG_HPP
OF_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:758
static boost::optional< OF_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:366
OF_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:519
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:1059
OF_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:593
boost::optional< const uint8_t > getEncapType()
Get the value of encapType if it has been set.
Definition: platform/Config.hpp:88
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:1085
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:1040
modelgbp::platform::Config & setMode(const uint8_t newValue)
Set mode to the specified value in the currently-active mutator.
Definition: platform/Config.hpp:225
boost::optional< const std::string & > getMulticastGroupIP()
Get the value of multicastGroupIP if it has been set.
Definition: platform/Config.hpp:256
static boost::optional< OF_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:384
modelgbp::platform::Config & setMulticastGroupIP(const std::string &newValue)
Set multicastGroupIP to the specified value in the currently-active mutator.
Definition: platform/Config.hpp:281
OF_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:934
static boost::optional< OF_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
void resolveGbpeSNATIPPool(std::vector< OF_SHARED_PTR< modelgbp::gbpe::SNATIPPool > > &out)
Resolve and retrieve all of the immediate children of type modelgbp::gbpe::SNATIPPool.
Definition: platform/Config.hpp:488
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:324
boost::optional< const uint8_t > getMode()
Get the value of mode if it has been set.
Definition: platform/Config.hpp:200
static boost::optional< OF_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
OF_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:684
boost::optional< OF_SHARED_PTR< modelgbp::dfw::Config > > resolveDfwConfig()
Retrieve the child object with the specified naming properties.
Definition: platform/Config.hpp:538
static boost::optional< OF_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:428
boost::optional< OF_SHARED_PTR< modelgbp::span::LocalEp > > resolveSpanLocalEp(const std::string &spanLocalEpName)
Retrieve the child object with the specified naming properties.
Definition: platform/Config.hpp:860
modelgbp::platform::Config & setInventoryType(const uint8_t newValue)
Set inventoryType to the specified value in the currently-active mutator.
Definition: platform/Config.hpp:169
static boost::optional< OF_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
bool isModeSet()
Check whether mode has been set.
Definition: platform/Config.hpp:191
static boost::optional< OF_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
boost::optional< OF_SHARED_PTR< modelgbp::span::DstGrp > > resolveSpanDstGrp(const std::string &spanDstGrpName)
Retrieve the child object with the specified naming properties.
Definition: platform/Config.hpp:800
static boost::optional< OF_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 isInventoryTypeSet()
Check whether inventoryType has been set.
Definition: platform/Config.hpp:135
Definition: platform/Config.hpp:65
OF_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:818
const uint8_t getInventoryType(const uint8_t defaultValue)
Get the value of inventoryType if set, otherwise the value of default passed in.
Definition: platform/Config.hpp:156
static void unregisterListener(opflex::ofcore::OFFramework &framework, opflex::modb::ObjectListener *listener)
Unregister a listener from updates to this class.
Definition: platform/Config.hpp:1071
static boost::optional< OF_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
boost::optional< OF_SHARED_PTR< modelgbp::l2::Config > > resolveL2Config()
Retrieve the child object with the specified naming properties.
Definition: platform/Config.hpp:633
boost::optional< OF_SHARED_PTR< modelgbp::gbpe::SNATIPPool > > resolveGbpeSNATIPPool(const std::string &gbpeSNATIPPoolName)
Retrieve the child object with the specified naming properties.
Definition: platform/Config.hpp:445
void resolveSpanLocalEp(std::vector< OF_SHARED_PTR< modelgbp::span::LocalEp > > &out)
Resolve and retrieve all of the immediate children of type modelgbp::span::LocalEp.
Definition: platform/Config.hpp:903
boost::optional< OF_SHARED_PTR< modelgbp::lacp::Config > > resolveLacpConfig()
Retrieve the child object with the specified naming properties.
Definition: platform/Config.hpp:668
OF_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:649
boost::optional< OF_SHARED_PTR< modelgbp::span::SrcGrp > > resolveSpanSrcGrp(const std::string &spanSrcGrpName)
Retrieve the child object with the specified naming properties.
Definition: platform/Config.hpp:740
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:212
static const opflex::modb::class_id_t CLASS_ID
The unique class ID for Config.
Definition: platform/Config.hpp:73
OF_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:554
void resolveDomainConfigFromConfigRTgt(std::vector< OF_SHARED_PTR< modelgbp::domain::ConfigFromConfigRTgt > > &out)
Resolve and retrieve all of the immediate children of type modelgbp::domain::ConfigFromConfigRTgt.
Definition: platform/Config.hpp:618
modelgbp::platform::Config & unsetMode()
Unset mode in the currently-active mutator.
Definition: platform/Config.hpp:237
Config(opflex::ofcore::OFFramework &framework, const opflex::modb::URI &uri, const OF_SHARED_PTR< const opflex::modb::mointernal::ObjectInstance > &oi)
Construct an instance of Config.
Definition: platform/Config.hpp:1095
static boost::optional< OF_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< OF_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
bool isNameSet()
Check whether name has been set.
Definition: platform/Config.hpp:303
void resolveSpanSrcGrp(std::vector< OF_SHARED_PTR< modelgbp::span::SrcGrp > > &out)
Resolve and retrieve all of the immediate children of type modelgbp::span::SrcGrp.
Definition: platform/Config.hpp:783
OF_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:719
modelgbp::platform::Config & unsetInventoryType()
Unset inventoryType in the currently-active mutator.
Definition: platform/Config.hpp:181
bool isMulticastGroupIPSet()
Check whether multicastGroupIP has been set.
Definition: platform/Config.hpp:247
boost::optional< OF_SHARED_PTR< modelgbp::stp::Config > > resolveStpConfig()
Retrieve the child object with the specified naming properties.
Definition: platform/Config.hpp:918
static boost::optional< OF_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
static boost::optional< OF_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:406
boost::optional< OF_SHARED_PTR< modelgbp::domain::ConfigFromConfigRTgt > > resolveDomainConfigFromConfigRTgt(const std::string &domainConfigFromConfigRTgtSource)
Retrieve the child object with the specified naming properties.
Definition: platform/Config.hpp:575
boost::optional< const uint8_t > getInventoryType()
Get the value of inventoryType if it has been set.
Definition: platform/Config.hpp:144
boost::optional< OF_SHARED_PTR< modelgbp::lldp::Config > > resolveLldpConfig()
Retrieve the child object with the specified naming properties.
Definition: platform/Config.hpp:703
boost::optional< const std::string & > getName()
Get the value of name if it has been set.
Definition: platform/Config.hpp:312
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:268
OF_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:463
modelgbp::platform::Config & unsetEncapType()
Unset encapType in the currently-active mutator.
Definition: platform/Config.hpp:125
void resolveSpanDstGrp(std::vector< OF_SHARED_PTR< modelgbp::span::DstGrp > > &out)
Resolve and retrieve all of the immediate children of type modelgbp::span::DstGrp.
Definition: platform/Config.hpp:843
modelgbp::platform::Config & unsetMulticastGroupIP()
Unset multicastGroupIP in the currently-active mutator.
Definition: platform/Config.hpp:293
static boost::optional< OF_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
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:349
boost::optional< OF_SHARED_PTR< modelgbp::cdp::Config > > resolveCdpConfig()
Retrieve the child object with the specified naming properties.
Definition: platform/Config.hpp:503
OF_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:878
bool isEncapTypeSet()
Check whether encapType has been set.
Definition: platform/Config.hpp:79
static boost::optional< OF_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
modelgbp::platform::Config & setName(const std::string &newValue)
Set name to the specified value in the currently-active mutator.
Definition: platform/Config.hpp:337