11#ifndef GI_GBP_SUBNET_HPP
12#define GI_GBP_SUBNET_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 = 195;
307 getTLMutator().modify(
getClassId(),
getURI())->unset(6389761ul, opflex::modb::PropertyInfo::STRING, opflex::modb::PropertyInfo::SCALAR);
419 getTLMutator().modify(
getClassId(),
getURI())->unset(6389764ul, opflex::modb::PropertyInfo::STRING, opflex::modb::PropertyInfo::SCALAR);
434 static boost::optional<OF_SHARED_PTR<modelgbp::gbp::Subnet> >
resolve(
436 const opflex::modb::URI&
uri)
452 static boost::optional<OF_SHARED_PTR<modelgbp::gbp::Subnet> >
resolve(
453 const opflex::modb::URI&
uri)
455 return opflex::modb::mointernal::MO::resolve<modelgbp::gbp::Subnet>(opflex::ofcore::OFFramework::defaultInstance(),
CLASS_ID,
uri);
478 static boost::optional<OF_SHARED_PTR<modelgbp::gbp::Subnet> >
resolve(
506 static boost::optional<OF_SHARED_PTR<modelgbp::gbp::Subnet> >
resolve(
538 const opflex::modb::URI&
uri)
555 remove(opflex::ofcore::OFFramework::defaultInstance(),
uri);
624 opflex::modb::ObjectListener*
listener)
626 opflex::modb::mointernal
642 opflex::modb::ObjectListener*
listener)
655 opflex::modb::ObjectListener*
listener)
657 opflex::modb::mointernal
668 opflex::modb::ObjectListener*
listener)
679 const opflex::modb::URI&
uri,
bool isAddressSet()
Check whether address has been set.
Definition Subnet.hpp:35
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 Subnet.hpp:641
bool isIpv6AdvAutonomousFlagSet()
Check whether ipv6AdvAutonomousFlag has been set.
Definition Subnet.hpp:91
modelgbp::gbp::Subnet & setIpv6AdvAutonomousFlag(const uint8_t newValue)
Set ipv6AdvAutonomousFlag to the specified value in the currently-active mutator.
Definition Subnet.hpp:125
bool isIpv6AdvPreferredLifetimeSet()
Check whether ipv6AdvPreferredLifetime has been set.
Definition Subnet.hpp:147
modelgbp::gbp::Subnet & unsetIpv6AdvPreferredLifetime()
Unset ipv6AdvPreferredLifetime in the currently-active mutator.
Definition Subnet.hpp:193
modelgbp::gbp::Subnet & setIpv6AdvValidLifetime(uint32_t newValue)
Set ipv6AdvValidLifetime to the specified value in the currently-active mutator.
Definition Subnet.hpp:237
static void remove(const opflex::modb::URI &uri)
Remove the Subnet object with the specified URI using the currently-active mutator and the default fr...
Definition Subnet.hpp:553
static void remove(opflex::ofcore::OFFramework &framework, const std::string &policySpaceName, const std::string &gbpSubnetsName, const std::string &gbpSubnetName)
Remove the Subnet object with the specified path elements from the managed object store.
Definition Subnet.hpp:576
const uint8_t getPrefixLen(const uint8_t defaultValue)
Get the value of prefixLen if set, otherwise the value of default passed in.
Definition Subnet.hpp:336
boost::optional< const uint8_t > getIpv6AdvAutonomousFlag()
Get the value of ipv6AdvAutonomousFlag if it has been set.
Definition Subnet.hpp:100
static void remove(const std::string &policySpaceName, const std::string &gbpSubnetsName, const std::string &gbpSubnetName)
Remove the Subnet object with the specified path elements from the managed object store using the def...
Definition Subnet.hpp:603
modelgbp::gbp::Subnet & unsetName()
Unset name in the currently-active mutator.
Definition Subnet.hpp:305
modelgbp::gbp::Subnet & setPrefixLen(const uint8_t newValue)
Set prefixLen to the specified value in the currently-active mutator.
Definition Subnet.hpp:349
boost::optional< const uint8_t > getPrefixLen()
Get the value of prefixLen if it has been set.
Definition Subnet.hpp:324
static boost::optional< OF_SHARED_PTR< modelgbp::gbp::Subnet > > resolve(const std::string &policySpaceName, const std::string &gbpSubnetsName, const std::string &gbpSubnetName)
Retrieve an instance of Subnet from the default managed object store by constructing its URI from the...
Definition Subnet.hpp:506
boost::optional< uint32_t > getIpv6AdvPreferredLifetime()
Get the value of ipv6AdvPreferredLifetime if it has been set.
Definition Subnet.hpp:156
static void remove(opflex::ofcore::OFFramework &framework, const opflex::modb::URI &uri)
Remove the Subnet object with the specified URI using the currently-active mutator.
Definition Subnet.hpp:537
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 Subnet.hpp:622
modelgbp::gbp::Subnet & setAddress(const std::string &newValue)
Set address to the specified value in the currently-active mutator.
Definition Subnet.hpp:69
modelgbp::gbp::Subnet & unsetIpv6AdvValidLifetime()
Unset ipv6AdvValidLifetime in the currently-active mutator.
Definition Subnet.hpp:249
bool isIpv6AdvValidLifetimeSet()
Check whether ipv6AdvValidLifetime has been set.
Definition Subnet.hpp:203
modelgbp::gbp::Subnet & setIpv6AdvPreferredLifetime(uint32_t newValue)
Set ipv6AdvPreferredLifetime to the specified value in the currently-active mutator.
Definition Subnet.hpp:181
uint32_t getIpv6AdvValidLifetime(uint32_t defaultValue)
Get the value of ipv6AdvValidLifetime if set, otherwise the value of default passed in.
Definition Subnet.hpp:224
const std::string & getName(const std::string &defaultValue)
Get the value of name if set, otherwise the value of default passed in.
Definition Subnet.hpp:280
void remove()
Remove this instance using the currently-active mutator.
Definition Subnet.hpp:522
static boost::optional< OF_SHARED_PTR< modelgbp::gbp::Subnet > > resolve(const opflex::modb::URI &uri)
Retrieve an instance of Subnet from the managed object store using the default framework instance.
Definition Subnet.hpp:452
bool isNameSet()
Check whether name has been set.
Definition Subnet.hpp:259
static boost::optional< OF_SHARED_PTR< modelgbp::gbp::Subnet > > resolve(opflex::ofcore::OFFramework &framework, const opflex::modb::URI &uri)
Retrieve an instance of Subnet from the managed object store.
Definition Subnet.hpp:434
uint32_t getIpv6AdvPreferredLifetime(uint32_t defaultValue)
Get the value of ipv6AdvPreferredLifetime if set, otherwise the value of default passed in.
Definition Subnet.hpp:168
const std::string & getVirtualRouterIp(const std::string &defaultValue)
Get the value of virtualRouterIp if set, otherwise the value of default passed in.
Definition Subnet.hpp:392
static boost::optional< OF_SHARED_PTR< modelgbp::gbp::Subnet > > resolve(opflex::ofcore::OFFramework &framework, const std::string &policySpaceName, const std::string &gbpSubnetsName, const std::string &gbpSubnetName)
Retrieve an instance of Subnet from the managed object store by constructing its URI from the path el...
Definition Subnet.hpp:478
modelgbp::gbp::Subnet & setName(const std::string &newValue)
Set name to the specified value in the currently-active mutator.
Definition Subnet.hpp:293
bool isPrefixLenSet()
Check whether prefixLen has been set.
Definition Subnet.hpp:315
static void unregisterListener(opflex::ofcore::OFFramework &framework, opflex::modb::ObjectListener *listener)
Unregister a listener from updates to this class.
Definition Subnet.hpp:653
Subnet(opflex::ofcore::OFFramework &framework, const opflex::modb::URI &uri, const OF_SHARED_PTR< const opflex::modb::mointernal::ObjectInstance > &oi)
Construct an instance of Subnet.
Definition Subnet.hpp:677
const uint8_t getIpv6AdvAutonomousFlag(const uint8_t defaultValue)
Get the value of ipv6AdvAutonomousFlag if set, otherwise the value of default passed in.
Definition Subnet.hpp:112
modelgbp::gbp::Subnet & unsetPrefixLen()
Unset prefixLen in the currently-active mutator.
Definition Subnet.hpp:361
modelgbp::gbp::Subnet & unsetIpv6AdvAutonomousFlag()
Unset ipv6AdvAutonomousFlag in the currently-active mutator.
Definition Subnet.hpp:137
boost::optional< const std::string & > getAddress()
Get the value of address if it has been set.
Definition Subnet.hpp:44
bool isVirtualRouterIpSet()
Check whether virtualRouterIp has been set.
Definition Subnet.hpp:371
modelgbp::gbp::Subnet & setVirtualRouterIp(const std::string &newValue)
Set virtualRouterIp to the specified value in the currently-active mutator.
Definition Subnet.hpp:405
boost::optional< const std::string & > getName()
Get the value of name if it has been set.
Definition Subnet.hpp:268
static void unregisterListener(opflex::modb::ObjectListener *listener)
Unregister a listener from updates to this class from the default framework instance.
Definition Subnet.hpp:667
static const opflex::modb::class_id_t CLASS_ID
The unique class ID for Subnet.
Definition Subnet.hpp:29
boost::optional< uint32_t > getIpv6AdvValidLifetime()
Get the value of ipv6AdvValidLifetime if it has been set.
Definition Subnet.hpp:212
modelgbp::gbp::Subnet & unsetVirtualRouterIp()
Unset virtualRouterIp in the currently-active mutator.
Definition Subnet.hpp:417
modelgbp::gbp::Subnet & unsetAddress()
Unset address in the currently-active mutator.
Definition Subnet.hpp:81
boost::optional< const std::string & > getVirtualRouterIp()
Get the value of virtualRouterIp if it has been set.
Definition Subnet.hpp:380
const std::string & getAddress(const std::string &defaultValue)
Get the value of address if set, otherwise the value of default passed in.
Definition Subnet.hpp:56
SOME COPYRIGHT.
Definition OpcodeEnumT.hpp:12