11#ifndef GI_DCI_ROUTETARGETDEF_HPP
12#define GI_DCI_ROUTETARGETDEF_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 = 92;
44 boost::optional<const std::string&>
getName()
195 getTLMutator().modify(
getClassId(),
getURI())->unset(3014661ul, opflex::modb::PropertyInfo::STRING, opflex::modb::PropertyInfo::SCALAR);
378 static boost::optional<OF_SHARED_PTR<modelgbp::dci::RouteTargetDef> >
resolve(
380 const opflex::modb::URI&
uri)
382 return opflex::modb::mointernal::MO::resolve<modelgbp::dci::RouteTargetDef>(
framework,
CLASS_ID,
uri);
396 static boost::optional<OF_SHARED_PTR<modelgbp::dci::RouteTargetDef> >
resolve(
397 const opflex::modb::URI&
uri)
399 return opflex::modb::mointernal::MO::resolve<modelgbp::dci::RouteTargetDef>(opflex::ofcore::OFFramework::defaultInstance(),
CLASS_ID,
uri);
424 static boost::optional<OF_SHARED_PTR<modelgbp::dci::RouteTargetDef> >
resolve(
455 static boost::optional<OF_SHARED_PTR<modelgbp::dci::RouteTargetDef> >
resolve(
488 const opflex::modb::URI&
uri)
505 remove(opflex::ofcore::OFFramework::defaultInstance(),
uri);
580 opflex::modb::ObjectListener*
listener)
582 opflex::modb::mointernal
598 opflex::modb::ObjectListener*
listener)
611 opflex::modb::ObjectListener*
listener)
613 opflex::modb::mointernal
624 opflex::modb::ObjectListener*
listener)
635 const opflex::modb::URI&
uri,
Definition RouteTargetDef.hpp:23
const uint8_t getTargetAf(const uint8_t defaultValue)
Get the value of targetAf if set, otherwise the value of default passed in.
Definition RouteTargetDef.hpp:280
static boost::optional< OF_SHARED_PTR< modelgbp::dci::RouteTargetDef > > resolve(opflex::ofcore::OFFramework &framework, const opflex::modb::URI &uri)
Retrieve an instance of RouteTargetDef from the managed object store.
Definition RouteTargetDef.hpp:378
const std::string & getRtIP(const std::string &defaultValue)
Get the value of rtIP if set, otherwise the value of default passed in.
Definition RouteTargetDef.hpp:168
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 RouteTargetDef.hpp:578
const uint8_t getType(const uint8_t defaultValue)
Get the value of type if set, otherwise the value of default passed in.
Definition RouteTargetDef.hpp:336
boost::optional< const uint8_t > getTargetAf()
Get the value of targetAf if it has been set.
Definition RouteTargetDef.hpp:268
boost::optional< uint32_t > getRtNN()
Get the value of rtNN if it has been set.
Definition RouteTargetDef.hpp:212
modelgbp::dci::RouteTargetDef & setTargetAf(const uint8_t newValue)
Set targetAf to the specified value in the currently-active mutator.
Definition RouteTargetDef.hpp:293
modelgbp::dci::RouteTargetDef & setRtIP(const std::string &newValue)
Set rtIP to the specified value in the currently-active mutator.
Definition RouteTargetDef.hpp:181
boost::optional< const std::string & > getName()
Get the value of name if it has been set.
Definition RouteTargetDef.hpp:44
uint32_t getRtAS(uint32_t defaultValue)
Get the value of rtAS if set, otherwise the value of default passed in.
Definition RouteTargetDef.hpp:112
static const opflex::modb::class_id_t CLASS_ID
The unique class ID for RouteTargetDef.
Definition RouteTargetDef.hpp:29
bool isTypeSet()
Check whether type has been set.
Definition RouteTargetDef.hpp:315
static boost::optional< OF_SHARED_PTR< modelgbp::dci::RouteTargetDef > > resolve(const opflex::modb::URI &uri)
Retrieve an instance of RouteTargetDef from the managed object store using the default framework inst...
Definition RouteTargetDef.hpp:396
modelgbp::dci::RouteTargetDef & unsetRtIP()
Unset rtIP in the currently-active mutator.
Definition RouteTargetDef.hpp:193
bool isRtIPSet()
Check whether rtIP has been set.
Definition RouteTargetDef.hpp:147
const std::string & getName(const std::string &defaultValue)
Get the value of name if set, otherwise the value of default passed in.
Definition RouteTargetDef.hpp:56
static void remove(const opflex::modb::URI &uri)
Remove the RouteTargetDef object with the specified URI using the currently-active mutator and the de...
Definition RouteTargetDef.hpp:503
modelgbp::dci::RouteTargetDef & unsetName()
Unset name in the currently-active mutator.
Definition RouteTargetDef.hpp:81
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 RouteTargetDef.hpp:597
modelgbp::dci::RouteTargetDef & unsetRtAS()
Unset rtAS in the currently-active mutator.
Definition RouteTargetDef.hpp:137
modelgbp::dci::RouteTargetDef & setType(const uint8_t newValue)
Set type to the specified value in the currently-active mutator.
Definition RouteTargetDef.hpp:349
modelgbp::dci::RouteTargetDef & setName(const std::string &newValue)
Set name to the specified value in the currently-active mutator.
Definition RouteTargetDef.hpp:69
boost::optional< const uint8_t > getType()
Get the value of type if it has been set.
Definition RouteTargetDef.hpp:324
boost::optional< const std::string & > getRtIP()
Get the value of rtIP if it has been set.
Definition RouteTargetDef.hpp:156
boost::optional< uint32_t > getRtAS()
Get the value of rtAS if it has been set.
Definition RouteTargetDef.hpp:100
static void unregisterListener(opflex::modb::ObjectListener *listener)
Unregister a listener from updates to this class from the default framework instance.
Definition RouteTargetDef.hpp:623
static void remove(opflex::ofcore::OFFramework &framework, const std::string &policySpaceName, const std::string &gbpRoutingDomainName, const std::string &dciRouteTargetPdefName, const std::string &dciRouteTargetDefName)
Remove the RouteTargetDef object with the specified path elements from the managed object store.
Definition RouteTargetDef.hpp:528
bool isNameSet()
Check whether name has been set.
Definition RouteTargetDef.hpp:35
modelgbp::dci::RouteTargetDef & setRtNN(uint32_t newValue)
Set rtNN to the specified value in the currently-active mutator.
Definition RouteTargetDef.hpp:237
static void unregisterListener(opflex::ofcore::OFFramework &framework, opflex::modb::ObjectListener *listener)
Unregister a listener from updates to this class.
Definition RouteTargetDef.hpp:609
modelgbp::dci::RouteTargetDef & unsetTargetAf()
Unset targetAf in the currently-active mutator.
Definition RouteTargetDef.hpp:305
uint32_t getRtNN(uint32_t defaultValue)
Get the value of rtNN if set, otherwise the value of default passed in.
Definition RouteTargetDef.hpp:224
RouteTargetDef(opflex::ofcore::OFFramework &framework, const opflex::modb::URI &uri, const OF_SHARED_PTR< const opflex::modb::mointernal::ObjectInstance > &oi)
Construct an instance of RouteTargetDef.
Definition RouteTargetDef.hpp:633
static boost::optional< OF_SHARED_PTR< modelgbp::dci::RouteTargetDef > > resolve(opflex::ofcore::OFFramework &framework, const std::string &policySpaceName, const std::string &gbpRoutingDomainName, const std::string &dciRouteTargetPdefName, const std::string &dciRouteTargetDefName)
Retrieve an instance of RouteTargetDef from the managed object store by constructing its URI from the...
Definition RouteTargetDef.hpp:424
bool isRtNNSet()
Check whether rtNN has been set.
Definition RouteTargetDef.hpp:203
void remove()
Remove this instance using the currently-active mutator.
Definition RouteTargetDef.hpp:472
static boost::optional< OF_SHARED_PTR< modelgbp::dci::RouteTargetDef > > resolve(const std::string &policySpaceName, const std::string &gbpRoutingDomainName, const std::string &dciRouteTargetPdefName, const std::string &dciRouteTargetDefName)
Retrieve an instance of RouteTargetDef from the default managed object store by constructing its URI ...
Definition RouteTargetDef.hpp:455
static void remove(opflex::ofcore::OFFramework &framework, const opflex::modb::URI &uri)
Remove the RouteTargetDef object with the specified URI using the currently-active mutator.
Definition RouteTargetDef.hpp:487
bool isTargetAfSet()
Check whether targetAf has been set.
Definition RouteTargetDef.hpp:259
static void remove(const std::string &policySpaceName, const std::string &gbpRoutingDomainName, const std::string &dciRouteTargetPdefName, const std::string &dciRouteTargetDefName)
Remove the RouteTargetDef object with the specified path elements from the managed object store using...
Definition RouteTargetDef.hpp:558
bool isRtASSet()
Check whether rtAS has been set.
Definition RouteTargetDef.hpp:91
modelgbp::dci::RouteTargetDef & unsetRtNN()
Unset rtNN in the currently-active mutator.
Definition RouteTargetDef.hpp:249
modelgbp::dci::RouteTargetDef & setRtAS(uint32_t newValue)
Set rtAS to the specified value in the currently-active mutator.
Definition RouteTargetDef.hpp:125
modelgbp::dci::RouteTargetDef & unsetType()
Unset type in the currently-active mutator.
Definition RouteTargetDef.hpp:361
SOME COPYRIGHT.
Definition OpcodeEnumT.hpp:12