modelgbp Generated OpFlex Model 1.7.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
62namespace modelgbp {
63namespace platform {
64
65class Config
66 : public opflex::modb::mointernal::MO
67{
68public:
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
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(1671171ul, opflex::modb::PropertyInfo::ENUM8);
138 }
139
144 boost::optional<const uint8_t> getMode()
145 {
146 if (isModeSet())
147 return (const uint8_t)getObjectInstance().getUInt64(1671171ul);
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(1671171ul, newValue);
172 return *this;
173 }
174
182 {
183 getTLMutator().modify(getClassId(), getURI())->unset(1671171ul, opflex::modb::PropertyInfo::ENUM8, opflex::modb::PropertyInfo::SCALAR);
184 return *this;
185 }
186
192 {
193 return getObjectInstance().isSet(1671172ul, opflex::modb::PropertyInfo::STRING);
194 }
195
200 boost::optional<const std::string&> getMulticastGroupIP()
201 {
203 return getObjectInstance().getString(1671172ul);
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
226 {
227 getTLMutator().modify(getClassId(), getURI())->setString(1671172ul, newValue);
228 return *this;
229 }
230
238 {
239 getTLMutator().modify(getClassId(), getURI())->unset(1671172ul, opflex::modb::PropertyInfo::STRING, opflex::modb::PropertyInfo::SCALAR);
240 return *this;
241 }
242
248 {
249 return getObjectInstance().isSet(1671169ul, opflex::modb::PropertyInfo::STRING);
250 }
251
256 boost::optional<const std::string&> getName()
257 {
258 if (isNameSet())
259 return getObjectInstance().getString(1671169ul);
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(1671169ul, newValue);
284 return *this;
285 }
286
294 {
295 getTLMutator().modify(getClassId(), getURI())->unset(1671169ul, opflex::modb::PropertyInfo::STRING, opflex::modb::PropertyInfo::SCALAR);
296 return *this;
297 }
298
310 static boost::optional<OF_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<OF_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<OF_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<OF_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<OF_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 OF_SHARED_PTR<modelgbp::gbpe::SNATIPPool> addGbpeSNATIPPool(
408 const std::string& gbpeSNATIPPoolName)
409 {
410 OF_SHARED_PTR<modelgbp::gbpe::SNATIPPool> result = addChild<modelgbp::gbpe::SNATIPPool>(
411 CLASS_ID, getURI(), 2149154862ul, 46,
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<OF_SHARED_PTR<modelgbp::gbpe::SNATIPPool> >& out)
433 {
434 opflex::modb::mointernal::MO::resolveChildren<modelgbp::gbpe::SNATIPPool>(
435 getFramework(), CLASS_ID, getURI(), 2149154862ul, 46, out);
436 }
437
447 boost::optional<OF_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 OF_SHARED_PTR<modelgbp::cdp::Config> addCdpConfig(
464 )
465 {
466 OF_SHARED_PTR<modelgbp::cdp::Config> result = addChild<modelgbp::cdp::Config>(
467 CLASS_ID, getURI(), 2149154869ul, 53,
468 opflex::modb::URIBuilder(getURI()).addElement("CdpConfig").build()
469 );
470 return result;
471 }
472
482 boost::optional<OF_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 OF_SHARED_PTR<modelgbp::dfw::Config> addDfwConfig(
499 )
500 {
501 OF_SHARED_PTR<modelgbp::dfw::Config> result = addChild<modelgbp::dfw::Config>(
502 CLASS_ID, getURI(), 2149154870ul, 54,
503 opflex::modb::URIBuilder(getURI()).addElement("DfwConfig").build()
504 );
505 return result;
506 }
507
519 boost::optional<OF_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 OF_SHARED_PTR<modelgbp::domain::ConfigFromConfigRTgt> addDomainConfigFromConfigRTgt(
538 const std::string& domainConfigFromConfigRTgtSource)
539 {
540 OF_SHARED_PTR<modelgbp::domain::ConfigFromConfigRTgt> result = addChild<modelgbp::domain::ConfigFromConfigRTgt>(
541 CLASS_ID, getURI(), 2149154874ul, 58,
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<OF_SHARED_PTR<modelgbp::domain::ConfigFromConfigRTgt> >& out)
563 {
564 opflex::modb::mointernal::MO::resolveChildren<modelgbp::domain::ConfigFromConfigRTgt>(
565 getFramework(), CLASS_ID, getURI(), 2149154874ul, 58, out);
566 }
567
577 boost::optional<OF_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 OF_SHARED_PTR<modelgbp::l2::Config> addL2Config(
594 )
595 {
596 OF_SHARED_PTR<modelgbp::l2::Config> result = addChild<modelgbp::l2::Config>(
597 CLASS_ID, getURI(), 2149154879ul, 63,
598 opflex::modb::URIBuilder(getURI()).addElement("L2Config").build()
599 );
600 return result;
601 }
602
612 boost::optional<OF_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 OF_SHARED_PTR<modelgbp::lacp::Config> addLacpConfig(
629 )
630 {
631 OF_SHARED_PTR<modelgbp::lacp::Config> result = addChild<modelgbp::lacp::Config>(
632 CLASS_ID, getURI(), 2149154880ul, 64,
633 opflex::modb::URIBuilder(getURI()).addElement("LacpConfig").build()
634 );
635 return result;
636 }
637
647 boost::optional<OF_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 OF_SHARED_PTR<modelgbp::lldp::Config> addLldpConfig(
664 )
665 {
666 OF_SHARED_PTR<modelgbp::lldp::Config> result = addChild<modelgbp::lldp::Config>(
667 CLASS_ID, getURI(), 2149154881ul, 65,
668 opflex::modb::URIBuilder(getURI()).addElement("LldpConfig").build()
669 );
670 return result;
671 }
672
684 boost::optional<OF_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 OF_SHARED_PTR<modelgbp::span::SrcGrp> addSpanSrcGrp(
703 const std::string& spanSrcGrpName)
704 {
705 OF_SHARED_PTR<modelgbp::span::SrcGrp> result = addChild<modelgbp::span::SrcGrp>(
706 CLASS_ID, getURI(), 2149154883ul, 67,
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<OF_SHARED_PTR<modelgbp::span::SrcGrp> >& out)
728 {
729 opflex::modb::mointernal::MO::resolveChildren<modelgbp::span::SrcGrp>(
730 getFramework(), CLASS_ID, getURI(), 2149154883ul, 67, out);
731 }
732
744 boost::optional<OF_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 OF_SHARED_PTR<modelgbp::span::DstGrp> addSpanDstGrp(
763 const std::string& spanDstGrpName)
764 {
765 OF_SHARED_PTR<modelgbp::span::DstGrp> result = addChild<modelgbp::span::DstGrp>(
766 CLASS_ID, getURI(), 2149154884ul, 68,
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<OF_SHARED_PTR<modelgbp::span::DstGrp> >& out)
788 {
789 opflex::modb::mointernal::MO::resolveChildren<modelgbp::span::DstGrp>(
790 getFramework(), CLASS_ID, getURI(), 2149154884ul, 68, out);
791 }
792
804 boost::optional<OF_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 OF_SHARED_PTR<modelgbp::span::LocalEp> addSpanLocalEp(
823 const std::string& spanLocalEpName)
824 {
825 OF_SHARED_PTR<modelgbp::span::LocalEp> result = addChild<modelgbp::span::LocalEp>(
826 CLASS_ID, getURI(), 2149154885ul, 69,
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<OF_SHARED_PTR<modelgbp::span::LocalEp> >& out)
848 {
849 opflex::modb::mointernal::MO::resolveChildren<modelgbp::span::LocalEp>(
850 getFramework(), CLASS_ID, getURI(), 2149154885ul, 69, out);
851 }
852
862 boost::optional<OF_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 OF_SHARED_PTR<modelgbp::stp::Config> addStpConfig(
879 )
880 {
881 OF_SHARED_PTR<modelgbp::stp::Config> result = addChild<modelgbp::stp::Config>(
882 CLASS_ID, getURI(), 2149154896ul, 80,
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
1016 opflex::ofcore::OFFramework& framework,
1017 opflex::modb::ObjectListener* listener)
1018 {
1019 opflex::modb::mointernal
1020 ::MO::unregisterListener(framework, listener, CLASS_ID);
1021 }
1022
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 OF_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
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
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::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
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
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
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
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
Definition platform/Config.hpp:67
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:310
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:847
static void remove(opflex::ofcore::OFFramework &framework, const std::string &platformConfigName)
Remove the Config object with the specified path elements from the managed object store.
Definition platform/Config.hpp:946
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 void unregisterListener(opflex::ofcore::OFFramework &framework, opflex::modb::ObjectListener *listener)
Unregister a listener from updates to this class.
Definition platform/Config.hpp:1015
boost::optional< OF_SHARED_PTR< modelgbp::lldp::Config > > resolveLldpConfig()
Retrieve the child object with the specified naming properties.
Definition platform/Config.hpp:647
boost::optional< const std::string & > getName()
Get the value of name if it has been set.
Definition platform/Config.hpp:256
boost::optional< OF_SHARED_PTR< modelgbp::dfw::Config > > resolveDfwConfig()
Retrieve the child object with the specified naming properties.
Definition platform/Config.hpp:482
modelgbp::platform::Config & setEncapType(const uint8_t newValue)
Set encapType to the specified value in the currently-active mutator.
Definition platform/Config.hpp:113
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:744
boost::optional< const uint8_t > getEncapType()
Get the value of encapType if it has been set.
Definition platform/Config.hpp:88
bool isModeSet()
Check whether mode has been set.
Definition platform/Config.hpp:135
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
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:663
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:787
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:407
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:432
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:684
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
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:328
bool isEncapTypeSet()
Check whether encapType has been set.
Definition platform/Config.hpp:79
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:372
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:628
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:519
boost::optional< OF_SHARED_PTR< modelgbp::lacp::Config > > resolveLacpConfig()
Retrieve the child object with the specified naming properties.
Definition platform/Config.hpp:612
bool isMulticastGroupIPSet()
Check whether multicastGroupIP has been set.
Definition platform/Config.hpp:191
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:804
static void remove(const opflex::modb::URI &uri)
Remove the Config object with the specified URI using the currently-active mutator and the default fr...
Definition platform/Config.hpp:927
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:498
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
modelgbp::platform::Config & unsetMulticastGroupIP()
Unset multicastGroupIP in the currently-active mutator.
Definition platform/Config.hpp:237
boost::optional< OF_SHARED_PTR< modelgbp::l2::Config > > resolveL2Config()
Retrieve the child object with the specified naming properties.
Definition platform/Config.hpp:577
boost::optional< const std::string & > getMulticastGroupIP()
Get the value of multicastGroupIP if it has been set.
Definition platform/Config.hpp:200
static void remove(opflex::ofcore::OFFramework &framework, const opflex::modb::URI &uri)
Remove the Config object with the specified URI using the currently-active mutator.
Definition platform/Config.hpp:911
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:537
modelgbp::platform::Config & unsetMode()
Unset mode in the currently-active mutator.
Definition platform/Config.hpp:181
boost::optional< OF_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
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
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
modelgbp::platform::Config & setMode(const uint8_t newValue)
Set mode to the specified value in the currently-active mutator.
Definition platform/Config.hpp:169
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:727
boost::optional< OF_SHARED_PTR< modelgbp::stp::Config > > resolveStpConfig()
Retrieve the child object with the specified naming properties.
Definition platform/Config.hpp:862
bool isNameSet()
Check whether name has been set.
Definition platform/Config.hpp:247
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:702
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:562
void remove()
Remove this instance using the currently-active mutator.
Definition platform/Config.hpp:896
modelgbp::platform::Config & unsetName()
Unset name in the currently-active mutator.
Definition platform/Config.hpp:293
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:822
static const opflex::modb::class_id_t CLASS_ID
The unique class ID for Config.
Definition platform/Config.hpp:73
static void remove(const std::string &platformConfigName)
Remove the Config object with the specified path elements from the managed object store using the def...
Definition platform/Config.hpp:967
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:389
modelgbp::platform::Config & setMulticastGroupIP(const std::string &newValue)
Set multicastGroupIP to the specified value in the currently-active mutator.
Definition platform/Config.hpp:225
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
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:762
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:1039
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:878
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:463
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
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:593
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:350
boost::optional< const uint8_t > getMode()
Get the value of mode if it has been set.
Definition platform/Config.hpp:144
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
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
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::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
SOME COPYRIGHT.
Definition OpcodeEnumT.hpp:12