11#ifndef GI_GBPE_L24CLASSIFIER_HPP
12#define GI_GBPE_L24CLASSIFIER_HPP
14#include <boost/optional.hpp>
15#include "opflex/modb/URIBuilder.h"
16#include "opflex/modb/mo-internal/MO.h"
20#include "modelgbp/gbp/RuleFromClassifierRTgt.hpp"
26 :
public opflex::modb::mointernal::MO
33 static const opflex::modb::class_id_t
CLASS_ID = 42;
41 return getObjectInstance().isSet(1376260ul, opflex::modb::PropertyInfo::ENUM8);
51 return (
const uint8_t)getObjectInstance().getUInt64(1376260ul);
62 return getArpOpc().get_value_or(defaultValue);
75 getTLMutator().modify(getClassId(), getURI())->setUInt64(1376260ul, newValue);
87 getTLMutator().modify(getClassId(), getURI())->unset(1376260ul, opflex::modb::PropertyInfo::ENUM8, opflex::modb::PropertyInfo::SCALAR);
97 return getObjectInstance().isSet(1376259ul, opflex::modb::PropertyInfo::ENUM8);
107 return (
const uint8_t)getObjectInstance().getUInt64(1376259ul);
131 getTLMutator().modify(getClassId(), getURI())->setUInt64(1376259ul, newValue);
143 getTLMutator().modify(getClassId(), getURI())->unset(1376259ul, opflex::modb::PropertyInfo::ENUM8, opflex::modb::PropertyInfo::SCALAR);
153 return getObjectInstance().isSet(1376265ul, opflex::modb::PropertyInfo::U64);
163 return (uint16_t)getObjectInstance().getUInt64(1376265ul);
187 getTLMutator().modify(getClassId(), getURI())->setUInt64(1376265ul, newValue);
199 getTLMutator().modify(getClassId(), getURI())->unset(1376265ul, opflex::modb::PropertyInfo::U64, opflex::modb::PropertyInfo::SCALAR);
209 return getObjectInstance().isSet(1376266ul, opflex::modb::PropertyInfo::U64);
219 return (uint16_t)getObjectInstance().getUInt64(1376266ul);
230 return getDToPort().get_value_or(defaultValue);
243 getTLMutator().modify(getClassId(), getURI())->setUInt64(1376266ul, newValue);
255 getTLMutator().modify(getClassId(), getURI())->unset(1376266ul, opflex::modb::PropertyInfo::U64, opflex::modb::PropertyInfo::SCALAR);
265 return getObjectInstance().isSet(1376261ul, opflex::modb::PropertyInfo::ENUM16);
275 return (uint16_t)getObjectInstance().getUInt64(1376261ul);
286 return getEtherT().get_value_or(defaultValue);
299 getTLMutator().modify(getClassId(), getURI())->setUInt64(1376261ul, newValue);
311 getTLMutator().modify(getClassId(), getURI())->unset(1376261ul, opflex::modb::PropertyInfo::ENUM16, opflex::modb::PropertyInfo::SCALAR);
321 return getObjectInstance().isSet(1376269ul, opflex::modb::PropertyInfo::U64);
331 return (
const uint8_t)getObjectInstance().getUInt64(1376269ul);
355 getTLMutator().modify(getClassId(), getURI())->setUInt64(1376269ul, newValue);
367 getTLMutator().modify(getClassId(), getURI())->unset(1376269ul, opflex::modb::PropertyInfo::U64, opflex::modb::PropertyInfo::SCALAR);
377 return getObjectInstance().isSet(1376268ul, opflex::modb::PropertyInfo::U64);
387 return (
const uint8_t)getObjectInstance().getUInt64(1376268ul);
411 getTLMutator().modify(getClassId(), getURI())->setUInt64(1376268ul, newValue);
423 getTLMutator().modify(getClassId(), getURI())->unset(1376268ul, opflex::modb::PropertyInfo::U64, opflex::modb::PropertyInfo::SCALAR);
433 return getObjectInstance().isSet(1376257ul, opflex::modb::PropertyInfo::STRING);
443 return getObjectInstance().getString(1376257ul);
452 const std::string&
getName(
const std::string& defaultValue)
454 return getName().get_value_or(defaultValue);
467 getTLMutator().modify(getClassId(), getURI())->setString(1376257ul, newValue);
479 getTLMutator().modify(getClassId(), getURI())->unset(1376257ul, opflex::modb::PropertyInfo::STRING, opflex::modb::PropertyInfo::SCALAR);
489 return getObjectInstance().isSet(1376258ul, opflex::modb::PropertyInfo::U64);
499 return (uint32_t)getObjectInstance().getUInt64(1376258ul);
510 return getOrder().get_value_or(defaultValue);
523 getTLMutator().modify(getClassId(), getURI())->setUInt64(1376258ul, newValue);
535 getTLMutator().modify(getClassId(), getURI())->unset(1376258ul, opflex::modb::PropertyInfo::U64, opflex::modb::PropertyInfo::SCALAR);
545 return getObjectInstance().isSet(1376262ul, opflex::modb::PropertyInfo::U64);
555 return (
const uint8_t)getObjectInstance().getUInt64(1376262ul);
564 const uint8_t
getProt(
const uint8_t defaultValue)
566 return getProt().get_value_or(defaultValue);
579 getTLMutator().modify(getClassId(), getURI())->setUInt64(1376262ul, newValue);
591 getTLMutator().modify(getClassId(), getURI())->unset(1376262ul, opflex::modb::PropertyInfo::U64, opflex::modb::PropertyInfo::SCALAR);
601 return getObjectInstance().isSet(1376263ul, opflex::modb::PropertyInfo::U64);
611 return (uint16_t)getObjectInstance().getUInt64(1376263ul);
635 getTLMutator().modify(getClassId(), getURI())->setUInt64(1376263ul, newValue);
647 getTLMutator().modify(getClassId(), getURI())->unset(1376263ul, opflex::modb::PropertyInfo::U64, opflex::modb::PropertyInfo::SCALAR);
657 return getObjectInstance().isSet(1376264ul, opflex::modb::PropertyInfo::U64);
667 return (uint16_t)getObjectInstance().getUInt64(1376264ul);
678 return getSToPort().get_value_or(defaultValue);
691 getTLMutator().modify(getClassId(), getURI())->setUInt64(1376264ul, newValue);
703 getTLMutator().modify(getClassId(), getURI())->unset(1376264ul, opflex::modb::PropertyInfo::U64, opflex::modb::PropertyInfo::SCALAR);
713 return getObjectInstance().isSet(1376267ul, opflex::modb::PropertyInfo::U64);
723 return (uint32_t)getObjectInstance().getUInt64(1376267ul);
747 getTLMutator().modify(getClassId(), getURI())->setUInt64(1376267ul, newValue);
759 getTLMutator().modify(getClassId(), getURI())->unset(1376267ul, opflex::modb::PropertyInfo::U64, opflex::modb::PropertyInfo::SCALAR);
774 static boost::optional<OF_SHARED_PTR<modelgbp::gbpe::L24Classifier> >
resolve(
775 opflex::ofcore::OFFramework& framework,
776 const opflex::modb::URI& uri)
778 return opflex::modb::mointernal::MO::resolve<modelgbp::gbpe::L24Classifier>(framework,
CLASS_ID, uri);
792 static boost::optional<OF_SHARED_PTR<modelgbp::gbpe::L24Classifier> >
resolve(
793 const opflex::modb::URI& uri)
795 return opflex::modb::mointernal::MO::resolve<modelgbp::gbpe::L24Classifier>(opflex::ofcore::OFFramework::defaultInstance(),
CLASS_ID, uri);
816 static boost::optional<OF_SHARED_PTR<modelgbp::gbpe::L24Classifier> >
resolve(
817 opflex::ofcore::OFFramework& framework,
818 const std::string& policySpaceName,
819 const std::string& gbpeL24ClassifierName)
821 return resolve(framework,opflex::modb::URIBuilder().addElement(
"PolicyUniverse").addElement(
"PolicySpace").addElement(policySpaceName).addElement(
"GbpeL24Classifier").addElement(gbpeL24ClassifierName).build());
841 static boost::optional<OF_SHARED_PTR<modelgbp::gbpe::L24Classifier> >
resolve(
842 const std::string& policySpaceName,
843 const std::string& gbpeL24ClassifierName)
845 return resolve(opflex::ofcore::OFFramework::defaultInstance(),policySpaceName,gbpeL24ClassifierName);
860 const std::string& gbpRuleFromClassifierRTgtSource)
878 const std::string& gbpRuleFromClassifierRTgtSource)
880 OF_SHARED_PTR<modelgbp::gbp::RuleFromClassifierRTgt> result = addChild<modelgbp::gbp::RuleFromClassifierRTgt>(
881 CLASS_ID, getURI(), 2148860051ul, 147,
882 opflex::modb::URIBuilder(getURI()).addElement(
"GbpRuleFromClassifierRTgt").addElement(gbpRuleFromClassifierRTgtSource).build()
884 result->setSource(gbpRuleFromClassifierRTgtSource);
904 opflex::modb::mointernal::MO::resolveChildren<modelgbp::gbp::RuleFromClassifierRTgt>(
905 getFramework(),
CLASS_ID, getURI(), 2148860051ul, 147, out);
918 getTLMutator().remove(
CLASS_ID, getURI());
931 static void remove(opflex::ofcore::OFFramework& framework,
932 const opflex::modb::URI& uri)
934 MO::remove(framework,
CLASS_ID, uri);
947 static void remove(
const opflex::modb::URI& uri)
949 remove(opflex::ofcore::OFFramework::defaultInstance(), uri);
969 opflex::ofcore::OFFramework& framework,
970 const std::string& policySpaceName,
971 const std::string& gbpeL24ClassifierName)
973 MO::remove(framework,
CLASS_ID, opflex::modb::URIBuilder().addElement(
"PolicyUniverse").addElement(
"PolicySpace").addElement(policySpaceName).addElement(
"GbpeL24Classifier").addElement(gbpeL24ClassifierName).build());
993 const std::string& policySpaceName,
994 const std::string& gbpeL24ClassifierName)
996 remove(opflex::ofcore::OFFramework::defaultInstance(),policySpaceName,gbpeL24ClassifierName);
1011 opflex::ofcore::OFFramework& framework,
1012 opflex::modb::ObjectListener* listener)
1014 opflex::modb::mointernal
1015 ::MO::registerListener(framework, listener,
CLASS_ID);
1030 opflex::modb::ObjectListener* listener)
1032 registerListener(opflex::ofcore::OFFramework::defaultInstance(), listener);
1042 opflex::ofcore::OFFramework& framework,
1043 opflex::modb::ObjectListener* listener)
1045 opflex::modb::mointernal
1046 ::MO::unregisterListener(framework, listener,
CLASS_ID);
1056 opflex::modb::ObjectListener* listener)
1066 opflex::ofcore::OFFramework& framework,
1067 const opflex::modb::URI& uri,
1068 const OF_SHARED_PTR<const opflex::modb::mointernal::ObjectInstance>& oi)
1069 : MO(framework,
CLASS_ID, uri, oi) { }
static boost::optional< OF_SHARED_PTR< modelgbp::gbp::RuleFromClassifierRTgt > > resolve(opflex::ofcore::OFFramework &framework, const opflex::modb::URI &uri)
Retrieve an instance of RuleFromClassifierRTgt from the managed object store.
Definition RuleFromClassifierRTgt.hpp:210
Definition L24Classifier.hpp:27
uint16_t getSToPort(uint16_t defaultValue)
Get the value of sToPort if set, otherwise the value of default passed in.
Definition L24Classifier.hpp:676
bool isArpOpcSet()
Check whether arpOpc has been set.
Definition L24Classifier.hpp:39
modelgbp::gbpe::L24Classifier & unsetDFromPort()
Unset dFromPort in the currently-active mutator.
Definition L24Classifier.hpp:197
uint16_t getDFromPort(uint16_t defaultValue)
Get the value of dFromPort if set, otherwise the value of default passed in.
Definition L24Classifier.hpp:172
L24Classifier(opflex::ofcore::OFFramework &framework, const opflex::modb::URI &uri, const OF_SHARED_PTR< const opflex::modb::mointernal::ObjectInstance > &oi)
Construct an instance of L24Classifier.
Definition L24Classifier.hpp:1065
static void unregisterListener(opflex::ofcore::OFFramework &framework, opflex::modb::ObjectListener *listener)
Unregister a listener from updates to this class.
Definition L24Classifier.hpp:1041
bool isSToPortSet()
Check whether sToPort has been set.
Definition L24Classifier.hpp:655
modelgbp::gbpe::L24Classifier & setSToPort(uint16_t newValue)
Set sToPort to the specified value in the currently-active mutator.
Definition L24Classifier.hpp:689
boost::optional< const uint8_t > getIcmpCode()
Get the value of icmpCode if it has been set.
Definition L24Classifier.hpp:328
bool isTcpFlagsSet()
Check whether tcpFlags has been set.
Definition L24Classifier.hpp:711
modelgbp::gbpe::L24Classifier & unsetArpOpc()
Unset arpOpc in the currently-active mutator.
Definition L24Classifier.hpp:85
boost::optional< uint16_t > getSToPort()
Get the value of sToPort if it has been set.
Definition L24Classifier.hpp:664
bool isConnectionTrackingSet()
Check whether connectionTracking has been set.
Definition L24Classifier.hpp:95
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 L24Classifier.hpp:1010
modelgbp::gbpe::L24Classifier & unsetOrder()
Unset order in the currently-active mutator.
Definition L24Classifier.hpp:533
uint32_t getTcpFlags(uint32_t defaultValue)
Get the value of tcpFlags if set, otherwise the value of default passed in.
Definition L24Classifier.hpp:732
modelgbp::gbpe::L24Classifier & unsetTcpFlags()
Unset tcpFlags in the currently-active mutator.
Definition L24Classifier.hpp:757
bool isIcmpTypeSet()
Check whether icmpType has been set.
Definition L24Classifier.hpp:375
modelgbp::gbpe::L24Classifier & setSFromPort(uint16_t newValue)
Set sFromPort to the specified value in the currently-active mutator.
Definition L24Classifier.hpp:633
modelgbp::gbpe::L24Classifier & unsetEtherT()
Unset etherT in the currently-active mutator.
Definition L24Classifier.hpp:309
const uint8_t getIcmpType(const uint8_t defaultValue)
Get the value of icmpType if set, otherwise the value of default passed in.
Definition L24Classifier.hpp:396
bool isIcmpCodeSet()
Check whether icmpCode has been set.
Definition L24Classifier.hpp:319
boost::optional< const uint8_t > getArpOpc()
Get the value of arpOpc if it has been set.
Definition L24Classifier.hpp:48
modelgbp::gbpe::L24Classifier & unsetIcmpType()
Unset icmpType in the currently-active mutator.
Definition L24Classifier.hpp:421
static boost::optional< OF_SHARED_PTR< modelgbp::gbpe::L24Classifier > > resolve(const std::string &policySpaceName, const std::string &gbpeL24ClassifierName)
Retrieve an instance of L24Classifier from the default managed object store by constructing its URI f...
Definition L24Classifier.hpp:841
void resolveGbpRuleFromClassifierRTgt(std::vector< OF_SHARED_PTR< modelgbp::gbp::RuleFromClassifierRTgt > > &out)
Resolve and retrieve all of the immediate children of type modelgbp::gbp::RuleFromClassifierRTgt.
Definition L24Classifier.hpp:902
boost::optional< uint32_t > getTcpFlags()
Get the value of tcpFlags if it has been set.
Definition L24Classifier.hpp:720
modelgbp::gbpe::L24Classifier & setIcmpCode(const uint8_t newValue)
Set icmpCode to the specified value in the currently-active mutator.
Definition L24Classifier.hpp:353
bool isEtherTSet()
Check whether etherT has been set.
Definition L24Classifier.hpp:263
modelgbp::gbpe::L24Classifier & setDFromPort(uint16_t newValue)
Set dFromPort to the specified value in the currently-active mutator.
Definition L24Classifier.hpp:185
boost::optional< const uint8_t > getIcmpType()
Get the value of icmpType if it has been set.
Definition L24Classifier.hpp:384
modelgbp::gbpe::L24Classifier & unsetIcmpCode()
Unset icmpCode in the currently-active mutator.
Definition L24Classifier.hpp:365
static void unregisterListener(opflex::modb::ObjectListener *listener)
Unregister a listener from updates to this class from the default framework instance.
Definition L24Classifier.hpp:1055
modelgbp::gbpe::L24Classifier & unsetName()
Unset name in the currently-active mutator.
Definition L24Classifier.hpp:477
modelgbp::gbpe::L24Classifier & setName(const std::string &newValue)
Set name to the specified value in the currently-active mutator.
Definition L24Classifier.hpp:465
boost::optional< uint16_t > getEtherT()
Get the value of etherT if it has been set.
Definition L24Classifier.hpp:272
const uint8_t getIcmpCode(const uint8_t defaultValue)
Get the value of icmpCode if set, otherwise the value of default passed in.
Definition L24Classifier.hpp:340
const std::string & getName(const std::string &defaultValue)
Get the value of name if set, otherwise the value of default passed in.
Definition L24Classifier.hpp:452
static void remove(const opflex::modb::URI &uri)
Remove the L24Classifier object with the specified URI using the currently-active mutator and the def...
Definition L24Classifier.hpp:947
static boost::optional< OF_SHARED_PTR< modelgbp::gbpe::L24Classifier > > resolve(opflex::ofcore::OFFramework &framework, const std::string &policySpaceName, const std::string &gbpeL24ClassifierName)
Retrieve an instance of L24Classifier from the managed object store by constructing its URI from the ...
Definition L24Classifier.hpp:816
OF_SHARED_PTR< modelgbp::gbp::RuleFromClassifierRTgt > addGbpRuleFromClassifierRTgt(const std::string &gbpRuleFromClassifierRTgtSource)
Create a new child object with the specified naming properties and make it a child of this object in ...
Definition L24Classifier.hpp:877
static const opflex::modb::class_id_t CLASS_ID
The unique class ID for L24Classifier.
Definition L24Classifier.hpp:33
static boost::optional< OF_SHARED_PTR< modelgbp::gbpe::L24Classifier > > resolve(const opflex::modb::URI &uri)
Retrieve an instance of L24Classifier from the managed object store using the default framework insta...
Definition L24Classifier.hpp:792
modelgbp::gbpe::L24Classifier & setDToPort(uint16_t newValue)
Set dToPort to the specified value in the currently-active mutator.
Definition L24Classifier.hpp:241
modelgbp::gbpe::L24Classifier & setConnectionTracking(const uint8_t newValue)
Set connectionTracking to the specified value in the currently-active mutator.
Definition L24Classifier.hpp:129
bool isSFromPortSet()
Check whether sFromPort has been set.
Definition L24Classifier.hpp:599
modelgbp::gbpe::L24Classifier & setOrder(uint32_t newValue)
Set order to the specified value in the currently-active mutator.
Definition L24Classifier.hpp:521
const uint8_t getArpOpc(const uint8_t defaultValue)
Get the value of arpOpc if set, otherwise the value of default passed in.
Definition L24Classifier.hpp:60
const uint8_t getProt(const uint8_t defaultValue)
Get the value of prot if set, otherwise the value of default passed in.
Definition L24Classifier.hpp:564
boost::optional< const uint8_t > getProt()
Get the value of prot if it has been set.
Definition L24Classifier.hpp:552
uint16_t getEtherT(uint16_t defaultValue)
Get the value of etherT if set, otherwise the value of default passed in.
Definition L24Classifier.hpp:284
boost::optional< const std::string & > getName()
Get the value of name if it has been set.
Definition L24Classifier.hpp:440
boost::optional< uint16_t > getSFromPort()
Get the value of sFromPort if it has been set.
Definition L24Classifier.hpp:608
bool isNameSet()
Check whether name has been set.
Definition L24Classifier.hpp:431
modelgbp::gbpe::L24Classifier & setTcpFlags(uint32_t newValue)
Set tcpFlags to the specified value in the currently-active mutator.
Definition L24Classifier.hpp:745
boost::optional< const uint8_t > getConnectionTracking()
Get the value of connectionTracking if it has been set.
Definition L24Classifier.hpp:104
void remove()
Remove this instance using the currently-active mutator.
Definition L24Classifier.hpp:916
modelgbp::gbpe::L24Classifier & unsetSFromPort()
Unset sFromPort in the currently-active mutator.
Definition L24Classifier.hpp:645
static void remove(opflex::ofcore::OFFramework &framework, const opflex::modb::URI &uri)
Remove the L24Classifier object with the specified URI using the currently-active mutator.
Definition L24Classifier.hpp:931
modelgbp::gbpe::L24Classifier & setEtherT(uint16_t newValue)
Set etherT to the specified value in the currently-active mutator.
Definition L24Classifier.hpp:297
bool isDFromPortSet()
Check whether dFromPort has been set.
Definition L24Classifier.hpp:151
modelgbp::gbpe::L24Classifier & unsetConnectionTracking()
Unset connectionTracking in the currently-active mutator.
Definition L24Classifier.hpp:141
modelgbp::gbpe::L24Classifier & setArpOpc(const uint8_t newValue)
Set arpOpc to the specified value in the currently-active mutator.
Definition L24Classifier.hpp:73
static void remove(const std::string &policySpaceName, const std::string &gbpeL24ClassifierName)
Remove the L24Classifier object with the specified path elements from the managed object store using ...
Definition L24Classifier.hpp:992
boost::optional< uint16_t > getDToPort()
Get the value of dToPort if it has been set.
Definition L24Classifier.hpp:216
modelgbp::gbpe::L24Classifier & unsetProt()
Unset prot in the currently-active mutator.
Definition L24Classifier.hpp:589
bool isOrderSet()
Check whether order has been set.
Definition L24Classifier.hpp:487
boost::optional< uint32_t > getOrder()
Get the value of order if it has been set.
Definition L24Classifier.hpp:496
modelgbp::gbpe::L24Classifier & unsetDToPort()
Unset dToPort in the currently-active mutator.
Definition L24Classifier.hpp:253
bool isProtSet()
Check whether prot has been set.
Definition L24Classifier.hpp:543
modelgbp::gbpe::L24Classifier & unsetSToPort()
Unset sToPort in the currently-active mutator.
Definition L24Classifier.hpp:701
boost::optional< OF_SHARED_PTR< modelgbp::gbp::RuleFromClassifierRTgt > > resolveGbpRuleFromClassifierRTgt(const std::string &gbpRuleFromClassifierRTgtSource)
Retrieve the child object with the specified naming properties.
Definition L24Classifier.hpp:859
uint16_t getSFromPort(uint16_t defaultValue)
Get the value of sFromPort if set, otherwise the value of default passed in.
Definition L24Classifier.hpp:620
static void remove(opflex::ofcore::OFFramework &framework, const std::string &policySpaceName, const std::string &gbpeL24ClassifierName)
Remove the L24Classifier object with the specified path elements from the managed object store.
Definition L24Classifier.hpp:968
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 L24Classifier.hpp:1029
boost::optional< uint16_t > getDFromPort()
Get the value of dFromPort if it has been set.
Definition L24Classifier.hpp:160
static boost::optional< OF_SHARED_PTR< modelgbp::gbpe::L24Classifier > > resolve(opflex::ofcore::OFFramework &framework, const opflex::modb::URI &uri)
Retrieve an instance of L24Classifier from the managed object store.
Definition L24Classifier.hpp:774
modelgbp::gbpe::L24Classifier & setIcmpType(const uint8_t newValue)
Set icmpType to the specified value in the currently-active mutator.
Definition L24Classifier.hpp:409
uint32_t getOrder(uint32_t defaultValue)
Get the value of order if set, otherwise the value of default passed in.
Definition L24Classifier.hpp:508
const uint8_t getConnectionTracking(const uint8_t defaultValue)
Get the value of connectionTracking if set, otherwise the value of default passed in.
Definition L24Classifier.hpp:116
uint16_t getDToPort(uint16_t defaultValue)
Get the value of dToPort if set, otherwise the value of default passed in.
Definition L24Classifier.hpp:228
modelgbp::gbpe::L24Classifier & setProt(const uint8_t newValue)
Set prot to the specified value in the currently-active mutator.
Definition L24Classifier.hpp:577
bool isDToPortSet()
Check whether dToPort has been set.
Definition L24Classifier.hpp:207
SOME COPYRIGHT.
Definition OpcodeEnumT.hpp:12