11 #ifndef GI_SPAN_DSTSUMMARY_HPP 12 #define GI_SPAN_DSTSUMMARY_HPP 14 #include <boost/optional.hpp> 15 #include "opflex/modb/URIBuilder.h" 16 #include "opflex/modb/mo-internal/MO.h" 22 :
public opflex::modb::mointernal::MO
29 static const opflex::modb::class_id_t
CLASS_ID = 79;
37 return getObjectInstance().isSet(2588673ul, opflex::modb::PropertyInfo::STRING);
44 boost::optional<const std::string&>
getDest()
47 return getObjectInstance().getString(2588673ul);
56 const std::string&
getDest(
const std::string& defaultValue)
58 return getDest().get_value_or(defaultValue);
71 getTLMutator().modify(getClassId(), getURI())->setString(2588673ul, newValue);
83 getTLMutator().modify(getClassId(), getURI())->unset(2588673ul, opflex::modb::PropertyInfo::STRING, opflex::modb::PropertyInfo::SCALAR);
93 return getObjectInstance().isSet(2588680ul, opflex::modb::PropertyInfo::U64);
103 return (
const uint8_t)getObjectInstance().getUInt64(2588680ul);
112 const uint8_t
getDscp(
const uint8_t defaultValue)
114 return getDscp().get_value_or(defaultValue);
127 getTLMutator().modify(getClassId(), getURI())->setUInt64(2588680ul, newValue);
139 getTLMutator().modify(getClassId(), getURI())->unset(2588680ul, opflex::modb::PropertyInfo::U64, opflex::modb::PropertyInfo::SCALAR);
149 return getObjectInstance().isSet(2588676ul, opflex::modb::PropertyInfo::U64);
159 return (uint16_t)getObjectInstance().getUInt64(2588676ul);
170 return getFlowId().get_value_or(defaultValue);
183 getTLMutator().modify(getClassId(), getURI())->setUInt64(2588676ul, newValue);
195 getTLMutator().modify(getClassId(), getURI())->unset(2588676ul, opflex::modb::PropertyInfo::U64, opflex::modb::PropertyInfo::SCALAR);
205 return getObjectInstance().isSet(2588681ul, opflex::modb::PropertyInfo::ENUM8);
215 return (
const uint8_t)getObjectInstance().getUInt64(2588681ul);
224 const uint8_t
getMode(
const uint8_t defaultValue)
226 return getMode().get_value_or(defaultValue);
239 getTLMutator().modify(getClassId(), getURI())->setUInt64(2588681ul, newValue);
251 getTLMutator().modify(getClassId(), getURI())->unset(2588681ul, opflex::modb::PropertyInfo::ENUM8, opflex::modb::PropertyInfo::SCALAR);
261 return getObjectInstance().isSet(2588679ul, opflex::modb::PropertyInfo::U64);
271 return (uint32_t)getObjectInstance().getUInt64(2588679ul);
282 return getMtu().get_value_or(defaultValue);
295 getTLMutator().modify(getClassId(), getURI())->setUInt64(2588679ul, newValue);
307 getTLMutator().modify(getClassId(), getURI())->unset(2588679ul, opflex::modb::PropertyInfo::U64, opflex::modb::PropertyInfo::SCALAR);
317 return getObjectInstance().isSet(2588674ul, opflex::modb::PropertyInfo::STRING);
327 return getObjectInstance().getString(2588674ul);
351 getTLMutator().modify(getClassId(), getURI())->setString(2588674ul, newValue);
363 getTLMutator().modify(getClassId(), getURI())->unset(2588674ul, opflex::modb::PropertyInfo::STRING, opflex::modb::PropertyInfo::SCALAR);
373 return getObjectInstance().isSet(2588677ul, opflex::modb::PropertyInfo::U64);
383 return (
const uint8_t)getObjectInstance().getUInt64(2588677ul);
392 const uint8_t
getTtl(
const uint8_t defaultValue)
394 return getTtl().get_value_or(defaultValue);
407 getTLMutator().modify(getClassId(), getURI())->setUInt64(2588677ul, newValue);
419 getTLMutator().modify(getClassId(), getURI())->unset(2588677ul, opflex::modb::PropertyInfo::U64, opflex::modb::PropertyInfo::SCALAR);
429 return getObjectInstance().isSet(2588675ul, opflex::modb::PropertyInfo::ENUM8);
439 return (
const uint8_t)getObjectInstance().getUInt64(2588675ul);
450 return getVersion().get_value_or(defaultValue);
463 getTLMutator().modify(getClassId(), getURI())->setUInt64(2588675ul, newValue);
475 getTLMutator().modify(getClassId(), getURI())->unset(2588675ul, opflex::modb::PropertyInfo::ENUM8, opflex::modb::PropertyInfo::SCALAR);
485 return getObjectInstance().isSet(2588678ul, opflex::modb::PropertyInfo::STRING);
495 return getObjectInstance().getString(2588678ul);
504 const std::string&
getVrfName(
const std::string& defaultValue)
506 return getVrfName().get_value_or(defaultValue);
519 getTLMutator().modify(getClassId(), getURI())->setString(2588678ul, newValue);
531 getTLMutator().modify(getClassId(), getURI())->unset(2588678ul, opflex::modb::PropertyInfo::STRING, opflex::modb::PropertyInfo::SCALAR);
546 static boost::optional<OF_SHARED_PTR<modelgbp::span::DstSummary> >
resolve(
547 opflex::ofcore::OFFramework& framework,
548 const opflex::modb::URI& uri)
550 return opflex::modb::mointernal::MO::resolve<modelgbp::span::DstSummary>(framework,
CLASS_ID, uri);
564 static boost::optional<OF_SHARED_PTR<modelgbp::span::DstSummary> >
resolve(
565 const opflex::modb::URI& uri)
567 return opflex::modb::mointernal::MO::resolve<modelgbp::span::DstSummary>(opflex::ofcore::OFFramework::defaultInstance(),
CLASS_ID, uri);
591 opflex::ofcore::OFFramework& framework,
592 const std::string& platformConfigName,
593 const std::string& spanSrcGrpName,
594 const std::string& spanDstMemberName)
596 return resolve(framework,opflex::modb::URIBuilder().addElement(
"PolicyUniverse").addElement(
"PlatformConfig").addElement(platformConfigName).addElement(
"SpanSrcGrp").addElement(spanSrcGrpName).addElement(
"SpanDstMember").addElement(spanDstMemberName).addElement(
"SpanDstSummary").build());
619 const std::string& platformConfigName,
620 const std::string& spanSrcGrpName,
621 const std::string& spanDstMemberName)
647 opflex::ofcore::OFFramework& framework,
648 const std::string& platformConfigName,
649 const std::string& spanDstGrpName,
650 const std::string& spanDstMemberName)
652 return resolve(framework,opflex::modb::URIBuilder().addElement(
"PolicyUniverse").addElement(
"PlatformConfig").addElement(platformConfigName).addElement(
"SpanDstGrp").addElement(spanDstGrpName).addElement(
"SpanDstMember").addElement(spanDstMemberName).addElement(
"SpanDstSummary").build());
675 const std::string& platformConfigName,
676 const std::string& spanDstGrpName,
677 const std::string& spanDstMemberName)
692 getTLMutator().remove(
CLASS_ID, getURI());
705 static void remove(opflex::ofcore::OFFramework& framework,
706 const opflex::modb::URI& uri)
708 MO::remove(framework,
CLASS_ID, uri);
721 static void remove(
const opflex::modb::URI& uri)
723 remove(opflex::ofcore::OFFramework::defaultInstance(), uri);
745 opflex::ofcore::OFFramework& framework,
746 const std::string& platformConfigName,
747 const std::string& spanSrcGrpName,
748 const std::string& spanDstMemberName)
750 MO::remove(framework,
CLASS_ID, opflex::modb::URIBuilder().addElement(
"PolicyUniverse").addElement(
"PlatformConfig").addElement(platformConfigName).addElement(
"SpanSrcGrp").addElement(spanSrcGrpName).addElement(
"SpanDstMember").addElement(spanDstMemberName).addElement(
"SpanDstSummary").build());
772 const std::string& platformConfigName,
773 const std::string& spanSrcGrpName,
774 const std::string& spanDstMemberName)
798 opflex::ofcore::OFFramework& framework,
799 const std::string& platformConfigName,
800 const std::string& spanDstGrpName,
801 const std::string& spanDstMemberName)
803 MO::remove(framework,
CLASS_ID, opflex::modb::URIBuilder().addElement(
"PolicyUniverse").addElement(
"PlatformConfig").addElement(platformConfigName).addElement(
"SpanDstGrp").addElement(spanDstGrpName).addElement(
"SpanDstMember").addElement(spanDstMemberName).addElement(
"SpanDstSummary").build());
825 const std::string& platformConfigName,
826 const std::string& spanDstGrpName,
827 const std::string& spanDstMemberName)
844 opflex::ofcore::OFFramework& framework,
845 opflex::modb::ObjectListener* listener)
847 opflex::modb::mointernal
848 ::MO::registerListener(framework, listener,
CLASS_ID);
863 opflex::modb::ObjectListener* listener)
875 opflex::ofcore::OFFramework& framework,
876 opflex::modb::ObjectListener* listener)
878 opflex::modb::mointernal
879 ::MO::unregisterListener(framework, listener,
CLASS_ID);
889 opflex::modb::ObjectListener* listener)
899 opflex::ofcore::OFFramework& framework,
900 const opflex::modb::URI& uri,
901 const OF_SHARED_PTR<const opflex::modb::mointernal::ObjectInstance>& oi)
902 : MO(framework,
CLASS_ID, uri, oi) { }
907 #endif // GI_SPAN_DSTSUMMARY_HPP modelgbp::span::DstSummary & setMtu(uint32_t newValue)
Set mtu to the specified value in the currently-active mutator.
Definition: DstSummary.hpp:293
uint32_t getMtu(uint32_t defaultValue)
Get the value of mtu if set, otherwise the value of default passed in.
Definition: DstSummary.hpp:280
bool isModeSet()
Check whether mode has been set.
Definition: DstSummary.hpp:203
boost::optional< const std::string & > getVrfName()
Get the value of vrfName if it has been set.
Definition: DstSummary.hpp:492
static const opflex::modb::class_id_t CLASS_ID
The unique class ID for DstSummary.
Definition: DstSummary.hpp:29
Definition: DstSummary.hpp:21
static void unregisterListener(opflex::modb::ObjectListener *listener)
Unregister a listener from updates to this class from the default framework instance.
Definition: DstSummary.hpp:888
const uint8_t getMode(const uint8_t defaultValue)
Get the value of mode if set, otherwise the value of default passed in.
Definition: DstSummary.hpp:224
const uint8_t getDscp(const uint8_t defaultValue)
Get the value of dscp if set, otherwise the value of default passed in.
Definition: DstSummary.hpp:112
static boost::optional< OF_SHARED_PTR< modelgbp::span::DstSummary > > resolve(const opflex::modb::URI &uri)
Retrieve an instance of DstSummary from the managed object store using the default framework instance...
Definition: DstSummary.hpp:564
modelgbp::span::DstSummary & setVersion(const uint8_t newValue)
Set version to the specified value in the currently-active mutator.
Definition: DstSummary.hpp:461
modelgbp::span::DstSummary & unsetMode()
Unset mode in the currently-active mutator.
Definition: DstSummary.hpp:249
static void removeUnderPolicyUniversePlatformConfigSpanDstGrpSpanDstMember(const std::string &platformConfigName, const std::string &spanDstGrpName, const std::string &spanDstMemberName)
Remove the DstSummary object with the specified path elements from the managed object store using the...
Definition: DstSummary.hpp:824
modelgbp::span::DstSummary & unsetFlowId()
Unset flowId in the currently-active mutator.
Definition: DstSummary.hpp:193
modelgbp::span::DstSummary & setMode(const uint8_t newValue)
Set mode to the specified value in the currently-active mutator.
Definition: DstSummary.hpp:237
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: DstSummary.hpp:843
modelgbp::span::DstSummary & unsetVrfName()
Unset vrfName in the currently-active mutator.
Definition: DstSummary.hpp:529
static void removeUnderPolicyUniversePlatformConfigSpanSrcGrpSpanDstMember(const std::string &platformConfigName, const std::string &spanSrcGrpName, const std::string &spanDstMemberName)
Remove the DstSummary object with the specified path elements from the managed object store using the...
Definition: DstSummary.hpp:771
modelgbp::span::DstSummary & setDest(const std::string &newValue)
Set dest to the specified value in the currently-active mutator.
Definition: DstSummary.hpp:69
static void removeUnderPolicyUniversePlatformConfigSpanSrcGrpSpanDstMember(opflex::ofcore::OFFramework &framework, const std::string &platformConfigName, const std::string &spanSrcGrpName, const std::string &spanDstMemberName)
Remove the DstSummary object with the specified path elements from the managed object store...
Definition: DstSummary.hpp:744
modelgbp::span::DstSummary & setTtl(const uint8_t newValue)
Set ttl to the specified value in the currently-active mutator.
Definition: DstSummary.hpp:405
bool isFlowIdSet()
Check whether flowId has been set.
Definition: DstSummary.hpp:147
const uint8_t getTtl(const uint8_t defaultValue)
Get the value of ttl if set, otherwise the value of default passed in.
Definition: DstSummary.hpp:392
modelgbp::span::DstSummary & setVrfName(const std::string &newValue)
Set vrfName to the specified value in the currently-active mutator.
Definition: DstSummary.hpp:517
const std::string & getSrcPrefix(const std::string &defaultValue)
Get the value of srcPrefix if set, otherwise the value of default passed in.
Definition: DstSummary.hpp:336
bool isMtuSet()
Check whether mtu has been set.
Definition: DstSummary.hpp:259
static boost::optional< OF_SHARED_PTR< modelgbp::span::DstSummary > > resolveUnderPolicyUniversePlatformConfigSpanDstGrpSpanDstMember(opflex::ofcore::OFFramework &framework, const std::string &platformConfigName, const std::string &spanDstGrpName, const std::string &spanDstMemberName)
Retrieve an instance of DstSummary from the managed object store by constructing its URI from the pat...
Definition: DstSummary.hpp:646
modelgbp::span::DstSummary & unsetSrcPrefix()
Unset srcPrefix in the currently-active mutator.
Definition: DstSummary.hpp:361
const uint8_t getVersion(const uint8_t defaultValue)
Get the value of version if set, otherwise the value of default passed in.
Definition: DstSummary.hpp:448
bool isDestSet()
Check whether dest has been set.
Definition: DstSummary.hpp:35
modelgbp::span::DstSummary & setFlowId(uint16_t newValue)
Set flowId to the specified value in the currently-active mutator.
Definition: DstSummary.hpp:181
bool isSrcPrefixSet()
Check whether srcPrefix has been set.
Definition: DstSummary.hpp:315
bool isDscpSet()
Check whether dscp has been set.
Definition: DstSummary.hpp:91
const std::string & getDest(const std::string &defaultValue)
Get the value of dest if set, otherwise the value of default passed in.
Definition: DstSummary.hpp:56
modelgbp::span::DstSummary & unsetDscp()
Unset dscp in the currently-active mutator.
Definition: DstSummary.hpp:137
static boost::optional< OF_SHARED_PTR< modelgbp::span::DstSummary > > resolveUnderPolicyUniversePlatformConfigSpanSrcGrpSpanDstMember(const std::string &platformConfigName, const std::string &spanSrcGrpName, const std::string &spanDstMemberName)
Retrieve an instance of DstSummary from the default managed object store by constructing its URI from...
Definition: DstSummary.hpp:618
boost::optional< const std::string & > getDest()
Get the value of dest if it has been set.
Definition: DstSummary.hpp:44
boost::optional< const uint8_t > getTtl()
Get the value of ttl if it has been set.
Definition: DstSummary.hpp:380
modelgbp::span::DstSummary & unsetDest()
Unset dest in the currently-active mutator.
Definition: DstSummary.hpp:81
boost::optional< const uint8_t > getVersion()
Get the value of version if it has been set.
Definition: DstSummary.hpp:436
bool isVersionSet()
Check whether version has been set.
Definition: DstSummary.hpp:427
boost::optional< const uint8_t > getMode()
Get the value of mode if it has been set.
Definition: DstSummary.hpp:212
modelgbp::span::DstSummary & unsetVersion()
Unset version in the currently-active mutator.
Definition: DstSummary.hpp:473
modelgbp::span::DstSummary & setSrcPrefix(const std::string &newValue)
Set srcPrefix to the specified value in the currently-active mutator.
Definition: DstSummary.hpp:349
const std::string & getVrfName(const std::string &defaultValue)
Get the value of vrfName if set, otherwise the value of default passed in.
Definition: DstSummary.hpp:504
static boost::optional< OF_SHARED_PTR< modelgbp::span::DstSummary > > resolve(opflex::ofcore::OFFramework &framework, const opflex::modb::URI &uri)
Retrieve an instance of DstSummary from the managed object store.
Definition: DstSummary.hpp:546
boost::optional< const uint8_t > getDscp()
Get the value of dscp if it has been set.
Definition: DstSummary.hpp:100
bool isVrfNameSet()
Check whether vrfName has been set.
Definition: DstSummary.hpp:483
DstSummary(opflex::ofcore::OFFramework &framework, const opflex::modb::URI &uri, const OF_SHARED_PTR< const opflex::modb::mointernal::ObjectInstance > &oi)
Construct an instance of DstSummary.
Definition: DstSummary.hpp:898
modelgbp::span::DstSummary & unsetMtu()
Unset mtu in the currently-active mutator.
Definition: DstSummary.hpp:305
bool isTtlSet()
Check whether ttl has been set.
Definition: DstSummary.hpp:371
modelgbp::span::DstSummary & unsetTtl()
Unset ttl in the currently-active mutator.
Definition: DstSummary.hpp:417
boost::optional< uint16_t > getFlowId()
Get the value of flowId if it has been set.
Definition: DstSummary.hpp:156
static boost::optional< OF_SHARED_PTR< modelgbp::span::DstSummary > > resolveUnderPolicyUniversePlatformConfigSpanDstGrpSpanDstMember(const std::string &platformConfigName, const std::string &spanDstGrpName, const std::string &spanDstMemberName)
Retrieve an instance of DstSummary from the default managed object store by constructing its URI from...
Definition: DstSummary.hpp:674
boost::optional< const std::string & > getSrcPrefix()
Get the value of srcPrefix if it has been set.
Definition: DstSummary.hpp:324
static void removeUnderPolicyUniversePlatformConfigSpanDstGrpSpanDstMember(opflex::ofcore::OFFramework &framework, const std::string &platformConfigName, const std::string &spanDstGrpName, const std::string &spanDstMemberName)
Remove the DstSummary object with the specified path elements from the managed object store...
Definition: DstSummary.hpp:797
boost::optional< uint32_t > getMtu()
Get the value of mtu if it has been set.
Definition: DstSummary.hpp:268
uint16_t getFlowId(uint16_t defaultValue)
Get the value of flowId if set, otherwise the value of default passed in.
Definition: DstSummary.hpp:168
modelgbp::span::DstSummary & setDscp(const uint8_t newValue)
Set dscp to the specified value in the currently-active mutator.
Definition: DstSummary.hpp:125
static void unregisterListener(opflex::ofcore::OFFramework &framework, opflex::modb::ObjectListener *listener)
Unregister a listener from updates to this class.
Definition: DstSummary.hpp:874
static boost::optional< OF_SHARED_PTR< modelgbp::span::DstSummary > > resolveUnderPolicyUniversePlatformConfigSpanSrcGrpSpanDstMember(opflex::ofcore::OFFramework &framework, const std::string &platformConfigName, const std::string &spanSrcGrpName, const std::string &spanDstMemberName)
Retrieve an instance of DstSummary from the managed object store by constructing its URI from the pat...
Definition: DstSummary.hpp:590
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: DstSummary.hpp:862
SOME COPYRIGHT.
Definition: OpcodeEnumT.hpp:12