11#ifndef GI_GBP_EXTERNALSUBNET_HPP
12#define GI_GBP_EXTERNALSUBNET_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 = 179;
139 getTLMutator().modify(
getClassId(),
getURI())->unset(5865473ul, opflex::modb::PropertyInfo::STRING, opflex::modb::PropertyInfo::SCALAR);
210 static boost::optional<OF_SHARED_PTR<modelgbp::gbp::ExternalSubnet> >
resolve(
212 const opflex::modb::URI&
uri)
214 return opflex::modb::mointernal::MO::resolve<modelgbp::gbp::ExternalSubnet>(
framework,
CLASS_ID,
uri);
228 static boost::optional<OF_SHARED_PTR<modelgbp::gbp::ExternalSubnet> >
resolve(
229 const opflex::modb::URI&
uri)
231 return opflex::modb::mointernal::MO::resolve<modelgbp::gbp::ExternalSubnet>(opflex::ofcore::OFFramework::defaultInstance(),
CLASS_ID,
uri);
258 static boost::optional<OF_SHARED_PTR<modelgbp::gbp::ExternalSubnet> >
resolve(
292 static boost::optional<OF_SHARED_PTR<modelgbp::gbp::ExternalSubnet> >
resolve(
326 const opflex::modb::URI&
uri)
343 remove(opflex::ofcore::OFFramework::defaultInstance(),
uri);
424 opflex::modb::ObjectListener*
listener)
426 opflex::modb::mointernal
442 opflex::modb::ObjectListener*
listener)
455 opflex::modb::ObjectListener*
listener)
457 opflex::modb::mointernal
468 opflex::modb::ObjectListener*
listener)
479 const opflex::modb::URI&
uri,
Definition ExternalSubnet.hpp:23
static boost::optional< OF_SHARED_PTR< modelgbp::gbp::ExternalSubnet > > resolve(opflex::ofcore::OFFramework &framework, const opflex::modb::URI &uri)
Retrieve an instance of ExternalSubnet from the managed object store.
Definition ExternalSubnet.hpp:210
bool isPrefixLenSet()
Check whether prefixLen has been set.
Definition ExternalSubnet.hpp:147
bool isNameSet()
Check whether name has been set.
Definition ExternalSubnet.hpp:91
const std::string & getAddress(const std::string &defaultValue)
Get the value of address if set, otherwise the value of default passed in.
Definition ExternalSubnet.hpp:56
const uint8_t getPrefixLen(const uint8_t defaultValue)
Get the value of prefixLen if set, otherwise the value of default passed in.
Definition ExternalSubnet.hpp:168
static boost::optional< OF_SHARED_PTR< modelgbp::gbp::ExternalSubnet > > resolve(const opflex::modb::URI &uri)
Retrieve an instance of ExternalSubnet from the managed object store using the default framework inst...
Definition ExternalSubnet.hpp:228
modelgbp::gbp::ExternalSubnet & setAddress(const std::string &newValue)
Set address to the specified value in the currently-active mutator.
Definition ExternalSubnet.hpp:69
modelgbp::gbp::ExternalSubnet & unsetAddress()
Unset address in the currently-active mutator.
Definition ExternalSubnet.hpp:81
modelgbp::gbp::ExternalSubnet & setPrefixLen(const uint8_t newValue)
Set prefixLen to the specified value in the currently-active mutator.
Definition ExternalSubnet.hpp:181
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 ExternalSubnet.hpp:441
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 ExternalSubnet.hpp:422
static void remove(const std::string &policySpaceName, const std::string &gbpRoutingDomainName, const std::string &gbpL3ExternalDomainName, const std::string &gbpL3ExternalNetworkName, const std::string &gbpExternalSubnetName)
Remove the ExternalSubnet object with the specified path elements from the managed object store using...
Definition ExternalSubnet.hpp:401
boost::optional< const std::string & > getAddress()
Get the value of address if it has been set.
Definition ExternalSubnet.hpp:44
static void unregisterListener(opflex::modb::ObjectListener *listener)
Unregister a listener from updates to this class from the default framework instance.
Definition ExternalSubnet.hpp:467
static boost::optional< OF_SHARED_PTR< modelgbp::gbp::ExternalSubnet > > resolve(opflex::ofcore::OFFramework &framework, const std::string &policySpaceName, const std::string &gbpRoutingDomainName, const std::string &gbpL3ExternalDomainName, const std::string &gbpL3ExternalNetworkName, const std::string &gbpExternalSubnetName)
Retrieve an instance of ExternalSubnet from the managed object store by constructing its URI from the...
Definition ExternalSubnet.hpp:258
modelgbp::gbp::ExternalSubnet & unsetName()
Unset name in the currently-active mutator.
Definition ExternalSubnet.hpp:137
static void unregisterListener(opflex::ofcore::OFFramework &framework, opflex::modb::ObjectListener *listener)
Unregister a listener from updates to this class.
Definition ExternalSubnet.hpp:453
static void remove(opflex::ofcore::OFFramework &framework, const std::string &policySpaceName, const std::string &gbpRoutingDomainName, const std::string &gbpL3ExternalDomainName, const std::string &gbpL3ExternalNetworkName, const std::string &gbpExternalSubnetName)
Remove the ExternalSubnet object with the specified path elements from the managed object store.
Definition ExternalSubnet.hpp:368
ExternalSubnet(opflex::ofcore::OFFramework &framework, const opflex::modb::URI &uri, const OF_SHARED_PTR< const opflex::modb::mointernal::ObjectInstance > &oi)
Construct an instance of ExternalSubnet.
Definition ExternalSubnet.hpp:477
static const opflex::modb::class_id_t CLASS_ID
The unique class ID for ExternalSubnet.
Definition ExternalSubnet.hpp:29
const std::string & getName(const std::string &defaultValue)
Get the value of name if set, otherwise the value of default passed in.
Definition ExternalSubnet.hpp:112
boost::optional< const uint8_t > getPrefixLen()
Get the value of prefixLen if it has been set.
Definition ExternalSubnet.hpp:156
static boost::optional< OF_SHARED_PTR< modelgbp::gbp::ExternalSubnet > > resolve(const std::string &policySpaceName, const std::string &gbpRoutingDomainName, const std::string &gbpL3ExternalDomainName, const std::string &gbpL3ExternalNetworkName, const std::string &gbpExternalSubnetName)
Retrieve an instance of ExternalSubnet from the default managed object store by constructing its URI ...
Definition ExternalSubnet.hpp:292
static void remove(opflex::ofcore::OFFramework &framework, const opflex::modb::URI &uri)
Remove the ExternalSubnet object with the specified URI using the currently-active mutator.
Definition ExternalSubnet.hpp:325
bool isAddressSet()
Check whether address has been set.
Definition ExternalSubnet.hpp:35
void remove()
Remove this instance using the currently-active mutator.
Definition ExternalSubnet.hpp:310
static void remove(const opflex::modb::URI &uri)
Remove the ExternalSubnet object with the specified URI using the currently-active mutator and the de...
Definition ExternalSubnet.hpp:341
boost::optional< const std::string & > getName()
Get the value of name if it has been set.
Definition ExternalSubnet.hpp:100
modelgbp::gbp::ExternalSubnet & setName(const std::string &newValue)
Set name to the specified value in the currently-active mutator.
Definition ExternalSubnet.hpp:125
modelgbp::gbp::ExternalSubnet & unsetPrefixLen()
Unset prefixLen in the currently-active mutator.
Definition ExternalSubnet.hpp:193
SOME COPYRIGHT.
Definition OpcodeEnumT.hpp:12