11#ifndef GI_INV_DHCPV4CONFIG_HPP
12#define GI_INV_DHCPV4CONFIG_HPP
14#include <boost/optional.hpp>
15#include "opflex/modb/URIBuilder.h"
16#include "opflex/modb/mo-internal/MO.h"
20#include "modelgbp/inv/DNSServer.hpp"
24#include "modelgbp/inv/Router.hpp"
28#include "modelgbp/inv/StaticRoute.hpp"
34 :
public opflex::modb::mointernal::MO
41 static const opflex::modb::class_id_t
CLASS_ID = 130;
168 boost::optional<const std::string&>
getIp()
207 getTLMutator().modify(
getClassId(),
getURI())->unset(4259841ul, opflex::modb::PropertyInfo::STRING, opflex::modb::PropertyInfo::SCALAR);
375 getTLMutator().modify(
getClassId(),
getURI())->unset(4259843ul, opflex::modb::PropertyInfo::STRING, opflex::modb::PropertyInfo::SCALAR);
390 static boost::optional<OF_SHARED_PTR<modelgbp::inv::DHCPv4Config> >
resolve(
392 const opflex::modb::URI&
uri)
394 return opflex::modb::mointernal::MO::resolve<modelgbp::inv::DHCPv4Config>(
framework,
CLASS_ID,
uri);
408 static boost::optional<OF_SHARED_PTR<modelgbp::inv::DHCPv4Config> >
resolve(
409 const opflex::modb::URI&
uri)
411 return opflex::modb::mointernal::MO::resolve<modelgbp::inv::DHCPv4Config>(opflex::ofcore::OFFramework::defaultInstance(),
CLASS_ID,
uri);
432 static boost::optional<OF_SHARED_PTR<modelgbp::inv::DHCPv4Config> >
resolve(
457 static boost::optional<OF_SHARED_PTR<modelgbp::inv::DHCPv4Config> >
resolve(
520 opflex::modb::mointernal::MO::resolveChildren<modelgbp::inv::DNSServer>(
580 opflex::modb::mointernal::MO::resolveChildren<modelgbp::inv::Router>(
654 opflex::modb::mointernal::MO::resolveChildren<modelgbp::inv::StaticRoute>(
682 const opflex::modb::URI&
uri)
699 remove(opflex::ofcore::OFFramework::defaultInstance(),
uri);
762 opflex::modb::ObjectListener*
listener)
764 opflex::modb::mointernal
780 opflex::modb::ObjectListener*
listener)
793 opflex::modb::ObjectListener*
listener)
795 opflex::modb::mointernal
806 opflex::modb::ObjectListener*
listener)
817 const opflex::modb::URI&
uri,
Definition DHCPv4Config.hpp:35
modelgbp::inv::DHCPv4Config & setDomain(const std::string &newValue)
Set domain to the specified value in the currently-active mutator.
Definition DHCPv4Config.hpp:81
modelgbp::inv::DHCPv4Config & setInterfaceMTU(uint16_t newValue)
Set interfaceMTU to the specified value in the currently-active mutator.
Definition DHCPv4Config.hpp:137
static void remove(opflex::ofcore::OFFramework &framework, const opflex::modb::URI &uri)
Remove the DHCPv4Config object with the specified URI using the currently-active mutator.
Definition DHCPv4Config.hpp:681
static void unregisterListener(opflex::modb::ObjectListener *listener)
Unregister a listener from updates to this class from the default framework instance.
Definition DHCPv4Config.hpp:805
boost::optional< const uint8_t > getPrefixLen()
Get the value of prefixLen if it has been set.
Definition DHCPv4Config.hpp:280
bool isServerIpSet()
Check whether serverIp has been set.
Definition DHCPv4Config.hpp:327
static const opflex::modb::class_id_t CLASS_ID
The unique class ID for DHCPv4Config.
Definition DHCPv4Config.hpp:41
modelgbp::inv::DHCPv4Config & unsetDomain()
Unset domain in the currently-active mutator.
Definition DHCPv4Config.hpp:93
boost::optional< OF_SHARED_PTR< modelgbp::inv::StaticRoute > > resolveInvStaticRoute(const std::string &invStaticRouteDest, const uint8_t invStaticRoutePrefixLen, const std::string &invStaticRouteNextHop)
Retrieve the child object with the specified naming properties.
Definition DHCPv4Config.hpp:599
static boost::optional< OF_SHARED_PTR< modelgbp::inv::DHCPv4Config > > resolve(const opflex::modb::URI &uri)
Retrieve an instance of DHCPv4Config from the managed object store using the default framework instan...
Definition DHCPv4Config.hpp:408
void resolveInvDNSServer(std::vector< OF_SHARED_PTR< modelgbp::inv::DNSServer > > &out)
Resolve and retrieve all of the immediate children of type modelgbp::inv::DNSServer.
Definition DHCPv4Config.hpp:518
bool isDomainSet()
Check whether domain has been set.
Definition DHCPv4Config.hpp:47
OF_SHARED_PTR< modelgbp::inv::Router > addInvRouter(const std::string &invRouterName)
Create a new child object with the specified naming properties and make it a child of this object in ...
Definition DHCPv4Config.hpp:553
boost::optional< uint32_t > getLeaseTime()
Get the value of leaseTime if it has been set.
Definition DHCPv4Config.hpp:224
static void remove(opflex::ofcore::OFFramework &framework, const std::string &invLocalEndpointInventoryName, const std::string &invLocalInventoryEpUuid)
Remove the DHCPv4Config object with the specified path elements from the managed object store.
Definition DHCPv4Config.hpp:718
modelgbp::inv::DHCPv4Config & setLeaseTime(uint32_t newValue)
Set leaseTime to the specified value in the currently-active mutator.
Definition DHCPv4Config.hpp:249
static void remove(const opflex::modb::URI &uri)
Remove the DHCPv4Config object with the specified URI using the currently-active mutator and the defa...
Definition DHCPv4Config.hpp:697
boost::optional< const std::string & > getIp()
Get the value of ip if it has been set.
Definition DHCPv4Config.hpp:168
modelgbp::inv::DHCPv4Config & unsetIp()
Unset ip in the currently-active mutator.
Definition DHCPv4Config.hpp:205
bool isPrefixLenSet()
Check whether prefixLen has been set.
Definition DHCPv4Config.hpp:271
void remove()
Remove this instance using the currently-active mutator.
Definition DHCPv4Config.hpp:666
static boost::optional< OF_SHARED_PTR< modelgbp::inv::DHCPv4Config > > resolve(opflex::ofcore::OFFramework &framework, const std::string &invLocalEndpointInventoryName, const std::string &invLocalInventoryEpUuid)
Retrieve an instance of DHCPv4Config from the managed object store by constructing its URI from the p...
Definition DHCPv4Config.hpp:432
boost::optional< OF_SHARED_PTR< modelgbp::inv::Router > > resolveInvRouter(const std::string &invRouterName)
Retrieve the child object with the specified naming properties.
Definition DHCPv4Config.hpp:535
modelgbp::inv::DHCPv4Config & setPrefixLen(const uint8_t newValue)
Set prefixLen to the specified value in the currently-active mutator.
Definition DHCPv4Config.hpp:305
bool isInterfaceMTUSet()
Check whether interfaceMTU has been set.
Definition DHCPv4Config.hpp:103
const std::string & getIp(const std::string &defaultValue)
Get the value of ip if set, otherwise the value of default passed in.
Definition DHCPv4Config.hpp:180
void resolveInvRouter(std::vector< OF_SHARED_PTR< modelgbp::inv::Router > > &out)
Resolve and retrieve all of the immediate children of type modelgbp::inv::Router.
Definition DHCPv4Config.hpp:578
uint16_t getInterfaceMTU(uint16_t defaultValue)
Get the value of interfaceMTU if set, otherwise the value of default passed in.
Definition DHCPv4Config.hpp:124
DHCPv4Config(opflex::ofcore::OFFramework &framework, const opflex::modb::URI &uri, const OF_SHARED_PTR< const opflex::modb::mointernal::ObjectInstance > &oi)
Construct an instance of DHCPv4Config.
Definition DHCPv4Config.hpp:815
modelgbp::inv::DHCPv4Config & unsetPrefixLen()
Unset prefixLen in the currently-active mutator.
Definition DHCPv4Config.hpp:317
boost::optional< uint16_t > getInterfaceMTU()
Get the value of interfaceMTU if it has been set.
Definition DHCPv4Config.hpp:112
boost::optional< OF_SHARED_PTR< modelgbp::inv::DNSServer > > resolveInvDNSServer(const std::string &invDNSServerName)
Retrieve the child object with the specified naming properties.
Definition DHCPv4Config.hpp:475
boost::optional< const std::string & > getServerIp()
Get the value of serverIp if it has been set.
Definition DHCPv4Config.hpp:336
modelgbp::inv::DHCPv4Config & setServerIp(const std::string &newValue)
Set serverIp to the specified value in the currently-active mutator.
Definition DHCPv4Config.hpp:361
static boost::optional< OF_SHARED_PTR< modelgbp::inv::DHCPv4Config > > resolve(const std::string &invLocalEndpointInventoryName, const std::string &invLocalInventoryEpUuid)
Retrieve an instance of DHCPv4Config from the default managed object store by constructing its URI fr...
Definition DHCPv4Config.hpp:457
bool isIpSet()
Check whether ip has been set.
Definition DHCPv4Config.hpp:159
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 DHCPv4Config.hpp:760
modelgbp::inv::DHCPv4Config & setIp(const std::string &newValue)
Set ip to the specified value in the currently-active mutator.
Definition DHCPv4Config.hpp:193
bool isLeaseTimeSet()
Check whether leaseTime has been set.
Definition DHCPv4Config.hpp:215
uint32_t getLeaseTime(uint32_t defaultValue)
Get the value of leaseTime if set, otherwise the value of default passed in.
Definition DHCPv4Config.hpp:236
OF_SHARED_PTR< modelgbp::inv::DNSServer > addInvDNSServer(const std::string &invDNSServerName)
Create a new child object with the specified naming properties and make it a child of this object in ...
Definition DHCPv4Config.hpp:493
static boost::optional< OF_SHARED_PTR< modelgbp::inv::DHCPv4Config > > resolve(opflex::ofcore::OFFramework &framework, const opflex::modb::URI &uri)
Retrieve an instance of DHCPv4Config from the managed object store.
Definition DHCPv4Config.hpp:390
const uint8_t getPrefixLen(const uint8_t defaultValue)
Get the value of prefixLen if set, otherwise the value of default passed in.
Definition DHCPv4Config.hpp:292
static void unregisterListener(opflex::ofcore::OFFramework &framework, opflex::modb::ObjectListener *listener)
Unregister a listener from updates to this class.
Definition DHCPv4Config.hpp:791
const std::string & getServerIp(const std::string &defaultValue)
Get the value of serverIp if set, otherwise the value of default passed in.
Definition DHCPv4Config.hpp:348
void resolveInvStaticRoute(std::vector< OF_SHARED_PTR< modelgbp::inv::StaticRoute > > &out)
Resolve and retrieve all of the immediate children of type modelgbp::inv::StaticRoute.
Definition DHCPv4Config.hpp:652
const std::string & getDomain(const std::string &defaultValue)
Get the value of domain if set, otherwise the value of default passed in.
Definition DHCPv4Config.hpp:68
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 DHCPv4Config.hpp:779
modelgbp::inv::DHCPv4Config & unsetInterfaceMTU()
Unset interfaceMTU in the currently-active mutator.
Definition DHCPv4Config.hpp:149
static void remove(const std::string &invLocalEndpointInventoryName, const std::string &invLocalInventoryEpUuid)
Remove the DHCPv4Config object with the specified path elements from the managed object store using t...
Definition DHCPv4Config.hpp:742
OF_SHARED_PTR< modelgbp::inv::StaticRoute > addInvStaticRoute(const std::string &invStaticRouteDest, const uint8_t invStaticRoutePrefixLen, const std::string &invStaticRouteNextHop)
Create a new child object with the specified naming properties and make it a child of this object in ...
Definition DHCPv4Config.hpp:623
modelgbp::inv::DHCPv4Config & unsetLeaseTime()
Unset leaseTime in the currently-active mutator.
Definition DHCPv4Config.hpp:261
boost::optional< const std::string & > getDomain()
Get the value of domain if it has been set.
Definition DHCPv4Config.hpp:56
modelgbp::inv::DHCPv4Config & unsetServerIp()
Unset serverIp in the currently-active mutator.
Definition DHCPv4Config.hpp:373
static boost::optional< OF_SHARED_PTR< modelgbp::inv::DNSServer > > resolve(opflex::ofcore::OFFramework &framework, const opflex::modb::URI &uri)
Retrieve an instance of DNSServer from the managed object store.
Definition DNSServer.hpp:98
static boost::optional< OF_SHARED_PTR< modelgbp::inv::Router > > resolve(opflex::ofcore::OFFramework &framework, const opflex::modb::URI &uri)
Retrieve an instance of Router from the managed object store.
Definition Router.hpp:98
static boost::optional< OF_SHARED_PTR< modelgbp::inv::StaticRoute > > resolve(opflex::ofcore::OFFramework &framework, const opflex::modb::URI &uri)
Retrieve an instance of StaticRoute from the managed object store.
Definition StaticRoute.hpp:210
SOME COPYRIGHT.
Definition OpcodeEnumT.hpp:12