modelgbp Generated OpFlex Model  1.7.0
LocalInventoryEp.hpp
1 
10 #pragma once
11 #ifndef GI_INV_LOCALINVENTORYEP_HPP
12 #define GI_INV_LOCALINVENTORYEP_HPP
13 
14 #include <boost/optional.hpp>
15 #include "opflex/modb/URIBuilder.h"
16 #include "opflex/modb/mo-internal/MO.h"
17 /*
18  * contains: item:mclass(inv/LocalInventoryEpToGroupRSrc)
19  */
20 #include "modelgbp/inv/LocalInventoryEpToGroupRSrc.hpp"
21 /*
22  * contains: item:mclass(inv/LocalInventoryEpToSecGroupRSrc)
23  */
24 #include "modelgbp/inv/LocalInventoryEpToSecGroupRSrc.hpp"
25 /*
26  * contains: item:mclass(inv/Ip)
27  */
28 #include "modelgbp/inv/Ip.hpp"
29 /*
30  * contains: item:mclass(inv/IpMapping)
31  */
32 #include "modelgbp/inv/IpMapping.hpp"
33 /*
34  * contains: item:mclass(inv/Interface)
35  */
36 #include "modelgbp/inv/Interface.hpp"
37 /*
38  * contains: item:mclass(inv/DHCPv4Config)
39  */
40 #include "modelgbp/inv/DHCPv4Config.hpp"
41 /*
42  * contains: item:mclass(inv/DHCPv6Config)
43  */
44 #include "modelgbp/inv/DHCPv6Config.hpp"
45 /*
46  * contains: item:mclass(inv/Attribute)
47  */
48 #include "modelgbp/inv/Attribute.hpp"
49 
50 namespace modelgbp {
51 namespace inv {
52 
54  : public opflex::modb::mointernal::MO
55 {
56 public:
57 
61  static const opflex::modb::class_id_t CLASS_ID = 116;
62 
68  {
69  return getObjectInstance().isSet(3801092ul, opflex::modb::PropertyInfo::U64);
70  }
71 
76  boost::optional<uint16_t> getAccessVlan()
77  {
78  if (isAccessVlanSet())
79  return (uint16_t)getObjectInstance().getUInt64(3801092ul);
80  return boost::none;
81  }
82 
88  uint16_t getAccessVlan(uint16_t defaultValue)
89  {
90  return getAccessVlan().get_value_or(defaultValue);
91  }
92 
102  {
103  getTLMutator().modify(getClassId(), getURI())->setUInt64(3801092ul, newValue);
104  return *this;
105  }
106 
114  {
115  getTLMutator().modify(getClassId(), getURI())->unset(3801092ul, opflex::modb::PropertyInfo::U64, opflex::modb::PropertyInfo::SCALAR);
116  return *this;
117  }
118 
124  {
125  return getObjectInstance().isSet(3801094ul, opflex::modb::PropertyInfo::ENUM8);
126  }
127 
132  boost::optional<const uint8_t> getDiscoveryMode()
133  {
134  if (isDiscoveryModeSet())
135  return (const uint8_t)getObjectInstance().getUInt64(3801094ul);
136  return boost::none;
137  }
138 
144  const uint8_t getDiscoveryMode(const uint8_t defaultValue)
145  {
146  return getDiscoveryMode().get_value_or(defaultValue);
147  }
148 
158  {
159  getTLMutator().modify(getClassId(), getURI())->setUInt64(3801094ul, newValue);
160  return *this;
161  }
162 
170  {
171  getTLMutator().modify(getClassId(), getURI())->unset(3801094ul, opflex::modb::PropertyInfo::ENUM8, opflex::modb::PropertyInfo::SCALAR);
172  return *this;
173  }
174 
180  {
181  return getObjectInstance().isSet(3801091ul, opflex::modb::PropertyInfo::STRING);
182  }
183 
188  boost::optional<const std::string&> getEgMappingAlias()
189  {
190  if (isEgMappingAliasSet())
191  return getObjectInstance().getString(3801091ul);
192  return boost::none;
193  }
194 
200  const std::string& getEgMappingAlias(const std::string& defaultValue)
201  {
202  return getEgMappingAlias().get_value_or(defaultValue);
203  }
204 
214  {
215  getTLMutator().modify(getClassId(), getURI())->setString(3801091ul, newValue);
216  return *this;
217  }
218 
226  {
227  getTLMutator().modify(getClassId(), getURI())->unset(3801091ul, opflex::modb::PropertyInfo::STRING, opflex::modb::PropertyInfo::SCALAR);
228  return *this;
229  }
230 
236  {
237  return getObjectInstance().isSet(3801093ul, opflex::modb::PropertyInfo::ENUM8);
238  }
239 
244  boost::optional<const uint8_t> getIfaceSecurity()
245  {
246  if (isIfaceSecuritySet())
247  return (const uint8_t)getObjectInstance().getUInt64(3801093ul);
248  return boost::none;
249  }
250 
256  const uint8_t getIfaceSecurity(const uint8_t defaultValue)
257  {
258  return getIfaceSecurity().get_value_or(defaultValue);
259  }
260 
270  {
271  getTLMutator().modify(getClassId(), getURI())->setUInt64(3801093ul, newValue);
272  return *this;
273  }
274 
282  {
283  getTLMutator().modify(getClassId(), getURI())->unset(3801093ul, opflex::modb::PropertyInfo::ENUM8, opflex::modb::PropertyInfo::SCALAR);
284  return *this;
285  }
286 
291  bool isMacSet()
292  {
293  return getObjectInstance().isSet(3801090ul, opflex::modb::PropertyInfo::MAC);
294  }
295 
300  boost::optional<const opflex::modb::MAC&> getMac()
301  {
302  if (isMacSet())
303  return getObjectInstance().getMAC(3801090ul);
304  return boost::none;
305  }
306 
312  const opflex::modb::MAC& getMac(const opflex::modb::MAC& defaultValue)
313  {
314  return getMac().get_value_or(defaultValue);
315  }
316 
325  modelgbp::inv::LocalInventoryEp& setMac(const opflex::modb::MAC& newValue)
326  {
327  getTLMutator().modify(getClassId(), getURI())->setMAC(3801090ul, newValue);
328  return *this;
329  }
330 
338  {
339  getTLMutator().modify(getClassId(), getURI())->unset(3801090ul, opflex::modb::PropertyInfo::MAC, opflex::modb::PropertyInfo::SCALAR);
340  return *this;
341  }
342 
347  bool isUuidSet()
348  {
349  return getObjectInstance().isSet(3801089ul, opflex::modb::PropertyInfo::STRING);
350  }
351 
356  boost::optional<const std::string&> getUuid()
357  {
358  if (isUuidSet())
359  return getObjectInstance().getString(3801089ul);
360  return boost::none;
361  }
362 
368  const std::string& getUuid(const std::string& defaultValue)
369  {
370  return getUuid().get_value_or(defaultValue);
371  }
372 
381  modelgbp::inv::LocalInventoryEp& setUuid(const std::string& newValue)
382  {
383  getTLMutator().modify(getClassId(), getURI())->setString(3801089ul, newValue);
384  return *this;
385  }
386 
394  {
395  getTLMutator().modify(getClassId(), getURI())->unset(3801089ul, opflex::modb::PropertyInfo::STRING, opflex::modb::PropertyInfo::SCALAR);
396  return *this;
397  }
398 
410  static boost::optional<OF_SHARED_PTR<modelgbp::inv::LocalInventoryEp> > resolve(
411  opflex::ofcore::OFFramework& framework,
412  const opflex::modb::URI& uri)
413  {
414  return opflex::modb::mointernal::MO::resolve<modelgbp::inv::LocalInventoryEp>(framework, CLASS_ID, uri);
415  }
416 
428  static boost::optional<OF_SHARED_PTR<modelgbp::inv::LocalInventoryEp> > resolve(
429  const opflex::modb::URI& uri)
430  {
431  return opflex::modb::mointernal::MO::resolve<modelgbp::inv::LocalInventoryEp>(opflex::ofcore::OFFramework::defaultInstance(), CLASS_ID, uri);
432  }
433 
452  static boost::optional<OF_SHARED_PTR<modelgbp::inv::LocalInventoryEp> > resolve(
453  opflex::ofcore::OFFramework& framework,
454  const std::string& invLocalEndpointInventoryName,
455  const std::string& invLocalInventoryEpUuid)
456  {
457  return resolve(framework,opflex::modb::URIBuilder().addElement("InvUniverse").addElement("InvLocalEndpointInventory").addElement(invLocalEndpointInventoryName).addElement("InvLocalInventoryEp").addElement(invLocalInventoryEpUuid).build());
458  }
459 
477  static boost::optional<OF_SHARED_PTR<modelgbp::inv::LocalInventoryEp> > resolve(
478  const std::string& invLocalEndpointInventoryName,
479  const std::string& invLocalInventoryEpUuid)
480  {
481  return resolve(opflex::ofcore::OFFramework::defaultInstance(),invLocalEndpointInventoryName,invLocalInventoryEpUuid);
482  }
483 
493  boost::optional<OF_SHARED_PTR<modelgbp::inv::LocalInventoryEpToGroupRSrc> > resolveInvLocalInventoryEpToGroupRSrc(
494  )
495  {
496  return modelgbp::inv::LocalInventoryEpToGroupRSrc::resolve(getFramework(), opflex::modb::URIBuilder(getURI()).addElement("InvLocalInventoryEpToGroupRSrc").build());
497  }
498 
509  OF_SHARED_PTR<modelgbp::inv::LocalInventoryEpToGroupRSrc> addInvLocalInventoryEpToGroupRSrc(
510  )
511  {
512  OF_SHARED_PTR<modelgbp::inv::LocalInventoryEpToGroupRSrc> result = addChild<modelgbp::inv::LocalInventoryEpToGroupRSrc>(
513  CLASS_ID, getURI(), 2151284853ul, 117,
514  opflex::modb::URIBuilder(getURI()).addElement("InvLocalInventoryEpToGroupRSrc").build()
515  );
516  return result;
517  }
518 
532  boost::optional<OF_SHARED_PTR<modelgbp::inv::LocalInventoryEpToSecGroupRSrc> > resolveInvLocalInventoryEpToSecGroupRSrc(
533  const std::string& invLocalInventoryEpToSecGroupRSrcTargetName)
534  {
535  opflex::modb::class_id_t invLocalInventoryEpToSecGroupRSrcTargetClass = 203;
536  return modelgbp::inv::LocalInventoryEpToSecGroupRSrc::resolve(getFramework(), opflex::modb::URIBuilder(getURI()).addElement("InvLocalInventoryEpToSecGroupRSrc").addElement(invLocalInventoryEpToSecGroupRSrcTargetClass).addElement(invLocalInventoryEpToSecGroupRSrcTargetName).build());
537  }
538 
553  OF_SHARED_PTR<modelgbp::inv::LocalInventoryEpToSecGroupRSrc> addInvLocalInventoryEpToSecGroupRSrc(
554  const std::string& invLocalInventoryEpToSecGroupRSrcTargetName)
555  {
556  opflex::modb::class_id_t invLocalInventoryEpToSecGroupRSrcTargetClass = 203;
557  OF_SHARED_PTR<modelgbp::inv::LocalInventoryEpToSecGroupRSrc> result = addChild<modelgbp::inv::LocalInventoryEpToSecGroupRSrc>(
558  CLASS_ID, getURI(), 2151284856ul, 120,
559  opflex::modb::URIBuilder(getURI()).addElement("InvLocalInventoryEpToSecGroupRSrc").addElement(invLocalInventoryEpToSecGroupRSrcTargetClass).addElement(invLocalInventoryEpToSecGroupRSrcTargetName).build()
560  );
561  result->setTargetSecGroup(opflex::modb::URI(invLocalInventoryEpToSecGroupRSrcTargetName));
562  return result;
563  }
564 
579  void resolveInvLocalInventoryEpToSecGroupRSrc(/* out */ std::vector<OF_SHARED_PTR<modelgbp::inv::LocalInventoryEpToSecGroupRSrc> >& out)
580  {
581  opflex::modb::mointernal::MO::resolveChildren<modelgbp::inv::LocalInventoryEpToSecGroupRSrc>(
582  getFramework(), CLASS_ID, getURI(), 2151284856ul, 120, out);
583  }
584 
598  boost::optional<OF_SHARED_PTR<modelgbp::inv::Ip> > resolveInvIp(
599  const std::string& invIpIp,
600  const std::string& invIpType)
601  {
602  return modelgbp::inv::Ip::resolve(getFramework(), opflex::modb::URIBuilder(getURI()).addElement("InvIp").addElement(invIpIp).addElement(invIpType).build());
603  }
604 
619  OF_SHARED_PTR<modelgbp::inv::Ip> addInvIp(
620  const std::string& invIpIp,
621  const std::string& invIpType)
622  {
623  OF_SHARED_PTR<modelgbp::inv::Ip> result = addChild<modelgbp::inv::Ip>(
624  CLASS_ID, getURI(), 2151284859ul, 123,
625  opflex::modb::URIBuilder(getURI()).addElement("InvIp").addElement(invIpIp).addElement(invIpType).build()
626  );
627  result->setIp(invIpIp);
628  result->setType(invIpType);
629  return result;
630  }
631 
646  void resolveInvIp(/* out */ std::vector<OF_SHARED_PTR<modelgbp::inv::Ip> >& out)
647  {
648  opflex::modb::mointernal::MO::resolveChildren<modelgbp::inv::Ip>(
649  getFramework(), CLASS_ID, getURI(), 2151284859ul, 123, out);
650  }
651 
663  boost::optional<OF_SHARED_PTR<modelgbp::inv::IpMapping> > resolveInvIpMapping(
664  const std::string& invIpMappingName)
665  {
666  return modelgbp::inv::IpMapping::resolve(getFramework(), opflex::modb::URIBuilder(getURI()).addElement("InvIpMapping").addElement(invIpMappingName).build());
667  }
668 
681  OF_SHARED_PTR<modelgbp::inv::IpMapping> addInvIpMapping(
682  const std::string& invIpMappingName)
683  {
684  OF_SHARED_PTR<modelgbp::inv::IpMapping> result = addChild<modelgbp::inv::IpMapping>(
685  CLASS_ID, getURI(), 2151284860ul, 124,
686  opflex::modb::URIBuilder(getURI()).addElement("InvIpMapping").addElement(invIpMappingName).build()
687  );
688  result->setName(invIpMappingName);
689  return result;
690  }
691 
706  void resolveInvIpMapping(/* out */ std::vector<OF_SHARED_PTR<modelgbp::inv::IpMapping> >& out)
707  {
708  opflex::modb::mointernal::MO::resolveChildren<modelgbp::inv::IpMapping>(
709  getFramework(), CLASS_ID, getURI(), 2151284860ul, 124, out);
710  }
711 
725  boost::optional<OF_SHARED_PTR<modelgbp::inv::Interface> > resolveInvInterface(
726  const std::string& invInterfaceName,
727  const std::string& invInterfaceType)
728  {
729  return modelgbp::inv::Interface::resolve(getFramework(), opflex::modb::URIBuilder(getURI()).addElement("InvInterface").addElement(invInterfaceName).addElement(invInterfaceType).build());
730  }
731 
746  OF_SHARED_PTR<modelgbp::inv::Interface> addInvInterface(
747  const std::string& invInterfaceName,
748  const std::string& invInterfaceType)
749  {
750  OF_SHARED_PTR<modelgbp::inv::Interface> result = addChild<modelgbp::inv::Interface>(
751  CLASS_ID, getURI(), 2151284864ul, 128,
752  opflex::modb::URIBuilder(getURI()).addElement("InvInterface").addElement(invInterfaceName).addElement(invInterfaceType).build()
753  );
754  result->setName(invInterfaceName);
755  result->setType(invInterfaceType);
756  return result;
757  }
758 
773  void resolveInvInterface(/* out */ std::vector<OF_SHARED_PTR<modelgbp::inv::Interface> >& out)
774  {
775  opflex::modb::mointernal::MO::resolveChildren<modelgbp::inv::Interface>(
776  getFramework(), CLASS_ID, getURI(), 2151284864ul, 128, out);
777  }
778 
788  boost::optional<OF_SHARED_PTR<modelgbp::inv::DHCPv4Config> > resolveInvDHCPv4Config(
789  )
790  {
791  return modelgbp::inv::DHCPv4Config::resolve(getFramework(), opflex::modb::URIBuilder(getURI()).addElement("InvDHCPv4Config").build());
792  }
793 
804  OF_SHARED_PTR<modelgbp::inv::DHCPv4Config> addInvDHCPv4Config(
805  )
806  {
807  OF_SHARED_PTR<modelgbp::inv::DHCPv4Config> result = addChild<modelgbp::inv::DHCPv4Config>(
808  CLASS_ID, getURI(), 2151284866ul, 130,
809  opflex::modb::URIBuilder(getURI()).addElement("InvDHCPv4Config").build()
810  );
811  return result;
812  }
813 
823  boost::optional<OF_SHARED_PTR<modelgbp::inv::DHCPv6Config> > resolveInvDHCPv6Config(
824  )
825  {
826  return modelgbp::inv::DHCPv6Config::resolve(getFramework(), opflex::modb::URIBuilder(getURI()).addElement("InvDHCPv6Config").build());
827  }
828 
839  OF_SHARED_PTR<modelgbp::inv::DHCPv6Config> addInvDHCPv6Config(
840  )
841  {
842  OF_SHARED_PTR<modelgbp::inv::DHCPv6Config> result = addChild<modelgbp::inv::DHCPv6Config>(
843  CLASS_ID, getURI(), 2151284870ul, 134,
844  opflex::modb::URIBuilder(getURI()).addElement("InvDHCPv6Config").build()
845  );
846  return result;
847  }
848 
860  boost::optional<OF_SHARED_PTR<modelgbp::inv::Attribute> > resolveInvAttribute(
861  const std::string& invAttributeName)
862  {
863  return modelgbp::inv::Attribute::resolve(getFramework(), opflex::modb::URIBuilder(getURI()).addElement("InvAttribute").addElement(invAttributeName).build());
864  }
865 
878  OF_SHARED_PTR<modelgbp::inv::Attribute> addInvAttribute(
879  const std::string& invAttributeName)
880  {
881  OF_SHARED_PTR<modelgbp::inv::Attribute> result = addChild<modelgbp::inv::Attribute>(
882  CLASS_ID, getURI(), 2151284872ul, 136,
883  opflex::modb::URIBuilder(getURI()).addElement("InvAttribute").addElement(invAttributeName).build()
884  );
885  result->setName(invAttributeName);
886  return result;
887  }
888 
903  void resolveInvAttribute(/* out */ std::vector<OF_SHARED_PTR<modelgbp::inv::Attribute> >& out)
904  {
905  opflex::modb::mointernal::MO::resolveChildren<modelgbp::inv::Attribute>(
906  getFramework(), CLASS_ID, getURI(), 2151284872ul, 136, out);
907  }
908 
917  void remove()
918  {
919  getTLMutator().remove(CLASS_ID, getURI());
920  }
921 
932  static void remove(opflex::ofcore::OFFramework& framework,
933  const opflex::modb::URI& uri)
934  {
935  MO::remove(framework, CLASS_ID, uri);
936  }
937 
948  static void remove(const opflex::modb::URI& uri)
949  {
950  remove(opflex::ofcore::OFFramework::defaultInstance(), uri);
951  }
952 
969  static void remove(
970  opflex::ofcore::OFFramework& framework,
971  const std::string& invLocalEndpointInventoryName,
972  const std::string& invLocalInventoryEpUuid)
973  {
974  MO::remove(framework, CLASS_ID, opflex::modb::URIBuilder().addElement("InvUniverse").addElement("InvLocalEndpointInventory").addElement(invLocalEndpointInventoryName).addElement("InvLocalInventoryEp").addElement(invLocalInventoryEpUuid).build());
975  }
976 
993  static void remove(
994  const std::string& invLocalEndpointInventoryName,
995  const std::string& invLocalInventoryEpUuid)
996  {
997  remove(opflex::ofcore::OFFramework::defaultInstance(),invLocalEndpointInventoryName,invLocalInventoryEpUuid);
998  }
999 
1011  static void registerListener(
1012  opflex::ofcore::OFFramework& framework,
1013  opflex::modb::ObjectListener* listener)
1014  {
1015  opflex::modb::mointernal
1016  ::MO::registerListener(framework, listener, CLASS_ID);
1017  }
1018 
1030  static void registerListener(
1031  opflex::modb::ObjectListener* listener)
1032  {
1033  registerListener(opflex::ofcore::OFFramework::defaultInstance(), listener);
1034  }
1035 
1042  static void unregisterListener(
1043  opflex::ofcore::OFFramework& framework,
1044  opflex::modb::ObjectListener* listener)
1045  {
1046  opflex::modb::mointernal
1047  ::MO::unregisterListener(framework, listener, CLASS_ID);
1048  }
1049 
1056  static void unregisterListener(
1057  opflex::modb::ObjectListener* listener)
1058  {
1059  unregisterListener(opflex::ofcore::OFFramework::defaultInstance(), listener);
1060  }
1061 
1067  opflex::ofcore::OFFramework& framework,
1068  const opflex::modb::URI& uri,
1069  const OF_SHARED_PTR<const opflex::modb::mointernal::ObjectInstance>& oi)
1070  : MO(framework, CLASS_ID, uri, oi) { }
1071 }; // class LocalInventoryEp
1072 
1073 } // namespace inv
1074 } // namespace modelgbp
1075 #endif // GI_INV_LOCALINVENTORYEP_HPP
boost::optional< OF_SHARED_PTR< modelgbp::inv::LocalInventoryEpToGroupRSrc > > resolveInvLocalInventoryEpToGroupRSrc()
Retrieve the child object with the specified naming properties.
Definition: LocalInventoryEp.hpp:493
static boost::optional< OF_SHARED_PTR< modelgbp::inv::LocalInventoryEp > > resolve(const opflex::modb::URI &uri)
Retrieve an instance of LocalInventoryEp from the managed object store using the default framework in...
Definition: LocalInventoryEp.hpp:428
void resolveInvIp(std::vector< OF_SHARED_PTR< modelgbp::inv::Ip > > &out)
Resolve and retrieve all of the immediate children of type modelgbp::inv::Ip.
Definition: LocalInventoryEp.hpp:646
static boost::optional< OF_SHARED_PTR< modelgbp::inv::LocalInventoryEpToGroupRSrc > > resolve(opflex::ofcore::OFFramework &framework, const opflex::modb::URI &uri)
Retrieve an instance of LocalInventoryEpToGroupRSrc from the managed object store.
Definition: LocalInventoryEpToGroupRSrc.hpp:257
modelgbp::inv::LocalInventoryEp & setMac(const opflex::modb::MAC &newValue)
Set mac to the specified value in the currently-active mutator.
Definition: LocalInventoryEp.hpp:325
static boost::optional< OF_SHARED_PTR< modelgbp::inv::Interface > > resolve(opflex::ofcore::OFFramework &framework, const opflex::modb::URI &uri)
Retrieve an instance of Interface from the managed object store.
Definition: Interface.hpp:154
boost::optional< const uint8_t > getDiscoveryMode()
Get the value of discoveryMode if it has been set.
Definition: LocalInventoryEp.hpp:132
OF_SHARED_PTR< modelgbp::inv::Interface > addInvInterface(const std::string &invInterfaceName, const std::string &invInterfaceType)
Create a new child object with the specified naming properties and make it a child of this object in ...
Definition: LocalInventoryEp.hpp:746
boost::optional< OF_SHARED_PTR< modelgbp::inv::DHCPv6Config > > resolveInvDHCPv6Config()
Retrieve the child object with the specified naming properties.
Definition: LocalInventoryEp.hpp:823
bool isUuidSet()
Check whether uuid has been set.
Definition: LocalInventoryEp.hpp:347
OF_SHARED_PTR< modelgbp::inv::LocalInventoryEpToSecGroupRSrc > addInvLocalInventoryEpToSecGroupRSrc(const std::string &invLocalInventoryEpToSecGroupRSrcTargetName)
Create a new child object with the specified naming properties and make it a child of this object in ...
Definition: LocalInventoryEp.hpp:553
modelgbp::inv::LocalInventoryEp & setDiscoveryMode(const uint8_t newValue)
Set discoveryMode to the specified value in the currently-active mutator.
Definition: LocalInventoryEp.hpp:157
const uint8_t getIfaceSecurity(const uint8_t defaultValue)
Get the value of ifaceSecurity if set, otherwise the value of default passed in.
Definition: LocalInventoryEp.hpp:256
const uint8_t getDiscoveryMode(const uint8_t defaultValue)
Get the value of discoveryMode if set, otherwise the value of default passed in.
Definition: LocalInventoryEp.hpp:144
boost::optional< OF_SHARED_PTR< modelgbp::inv::DHCPv4Config > > resolveInvDHCPv4Config()
Retrieve the child object with the specified naming properties.
Definition: LocalInventoryEp.hpp:788
modelgbp::inv::LocalInventoryEp & setIfaceSecurity(const uint8_t newValue)
Set ifaceSecurity to the specified value in the currently-active mutator.
Definition: LocalInventoryEp.hpp:269
uint16_t getAccessVlan(uint16_t defaultValue)
Get the value of accessVlan if set, otherwise the value of default passed in.
Definition: LocalInventoryEp.hpp:88
bool isAccessVlanSet()
Check whether accessVlan has been set.
Definition: LocalInventoryEp.hpp:67
boost::optional< OF_SHARED_PTR< modelgbp::inv::IpMapping > > resolveInvIpMapping(const std::string &invIpMappingName)
Retrieve the child object with the specified naming properties.
Definition: LocalInventoryEp.hpp:663
static void unregisterListener(opflex::ofcore::OFFramework &framework, opflex::modb::ObjectListener *listener)
Unregister a listener from updates to this class.
Definition: LocalInventoryEp.hpp:1042
static boost::optional< OF_SHARED_PTR< modelgbp::inv::LocalInventoryEp > > resolve(const std::string &invLocalEndpointInventoryName, const std::string &invLocalInventoryEpUuid)
Retrieve an instance of LocalInventoryEp from the default managed object store by constructing its UR...
Definition: LocalInventoryEp.hpp:477
modelgbp::inv::LocalInventoryEp & unsetEgMappingAlias()
Unset egMappingAlias in the currently-active mutator.
Definition: LocalInventoryEp.hpp:225
bool isDiscoveryModeSet()
Check whether discoveryMode has been set.
Definition: LocalInventoryEp.hpp:123
static boost::optional< OF_SHARED_PTR< modelgbp::inv::LocalInventoryEpToSecGroupRSrc > > resolve(opflex::ofcore::OFFramework &framework, const opflex::modb::URI &uri)
Retrieve an instance of LocalInventoryEpToSecGroupRSrc from the managed object store.
Definition: LocalInventoryEpToSecGroupRSrc.hpp:257
modelgbp::inv::LocalInventoryEp & unsetAccessVlan()
Unset accessVlan in the currently-active mutator.
Definition: LocalInventoryEp.hpp:113
static const opflex::modb::class_id_t CLASS_ID
The unique class ID for LocalInventoryEp.
Definition: LocalInventoryEp.hpp:61
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: LocalInventoryEp.hpp:1011
modelgbp::inv::LocalInventoryEp & unsetIfaceSecurity()
Unset ifaceSecurity in the currently-active mutator.
Definition: LocalInventoryEp.hpp:281
boost::optional< OF_SHARED_PTR< modelgbp::inv::Ip > > resolveInvIp(const std::string &invIpIp, const std::string &invIpType)
Retrieve the child object with the specified naming properties.
Definition: LocalInventoryEp.hpp:598
static boost::optional< OF_SHARED_PTR< modelgbp::inv::Attribute > > resolve(opflex::ofcore::OFFramework &framework, const opflex::modb::URI &uri)
Retrieve an instance of Attribute from the managed object store.
Definition: Attribute.hpp:154
bool isIfaceSecuritySet()
Check whether ifaceSecurity has been set.
Definition: LocalInventoryEp.hpp:235
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 opflex::modb::MAC & getMac(const opflex::modb::MAC &defaultValue)
Get the value of mac if set, otherwise the value of default passed in.
Definition: LocalInventoryEp.hpp:312
OF_SHARED_PTR< modelgbp::inv::DHCPv6Config > addInvDHCPv6Config()
Create a new child object with the specified naming properties and make it a child of this object in ...
Definition: LocalInventoryEp.hpp:839
Definition: LocalInventoryEp.hpp:53
OF_SHARED_PTR< modelgbp::inv::Ip > addInvIp(const std::string &invIpIp, const std::string &invIpType)
Create a new child object with the specified naming properties and make it a child of this object in ...
Definition: LocalInventoryEp.hpp:619
static boost::optional< OF_SHARED_PTR< modelgbp::inv::IpMapping > > resolve(opflex::ofcore::OFFramework &framework, const opflex::modb::URI &uri)
Retrieve an instance of IpMapping from the managed object store.
Definition: IpMapping.hpp:326
modelgbp::inv::LocalInventoryEp & unsetUuid()
Unset uuid in the currently-active mutator.
Definition: LocalInventoryEp.hpp:393
static boost::optional< OF_SHARED_PTR< modelgbp::inv::LocalInventoryEp > > resolve(opflex::ofcore::OFFramework &framework, const std::string &invLocalEndpointInventoryName, const std::string &invLocalInventoryEpUuid)
Retrieve an instance of LocalInventoryEp from the managed object store by constructing its URI from t...
Definition: LocalInventoryEp.hpp:452
OF_SHARED_PTR< modelgbp::inv::DHCPv4Config > addInvDHCPv4Config()
Create a new child object with the specified naming properties and make it a child of this object in ...
Definition: LocalInventoryEp.hpp:804
void resolveInvInterface(std::vector< OF_SHARED_PTR< modelgbp::inv::Interface > > &out)
Resolve and retrieve all of the immediate children of type modelgbp::inv::Interface.
Definition: LocalInventoryEp.hpp:773
void resolveInvIpMapping(std::vector< OF_SHARED_PTR< modelgbp::inv::IpMapping > > &out)
Resolve and retrieve all of the immediate children of type modelgbp::inv::IpMapping.
Definition: LocalInventoryEp.hpp:706
OF_SHARED_PTR< modelgbp::inv::IpMapping > addInvIpMapping(const std::string &invIpMappingName)
Create a new child object with the specified naming properties and make it a child of this object in ...
Definition: LocalInventoryEp.hpp:681
void resolveInvAttribute(std::vector< OF_SHARED_PTR< modelgbp::inv::Attribute > > &out)
Resolve and retrieve all of the immediate children of type modelgbp::inv::Attribute.
Definition: LocalInventoryEp.hpp:903
modelgbp::inv::LocalInventoryEp & unsetDiscoveryMode()
Unset discoveryMode in the currently-active mutator.
Definition: LocalInventoryEp.hpp:169
boost::optional< const std::string & > getEgMappingAlias()
Get the value of egMappingAlias if it has been set.
Definition: LocalInventoryEp.hpp:188
modelgbp::inv::LocalInventoryEp & setAccessVlan(uint16_t newValue)
Set accessVlan to the specified value in the currently-active mutator.
Definition: LocalInventoryEp.hpp:101
bool isEgMappingAliasSet()
Check whether egMappingAlias has been set.
Definition: LocalInventoryEp.hpp:179
OF_SHARED_PTR< modelgbp::inv::Attribute > addInvAttribute(const std::string &invAttributeName)
Create a new child object with the specified naming properties and make it a child of this object in ...
Definition: LocalInventoryEp.hpp:878
bool isMacSet()
Check whether mac has been set.
Definition: LocalInventoryEp.hpp:291
void resolveInvLocalInventoryEpToSecGroupRSrc(std::vector< OF_SHARED_PTR< modelgbp::inv::LocalInventoryEpToSecGroupRSrc > > &out)
Resolve and retrieve all of the immediate children of type modelgbp::inv::LocalInventoryEpToSecGroupR...
Definition: LocalInventoryEp.hpp:579
static boost::optional< OF_SHARED_PTR< modelgbp::inv::LocalInventoryEp > > resolve(opflex::ofcore::OFFramework &framework, const opflex::modb::URI &uri)
Retrieve an instance of LocalInventoryEp from the managed object store.
Definition: LocalInventoryEp.hpp:410
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: LocalInventoryEp.hpp:1030
boost::optional< OF_SHARED_PTR< modelgbp::inv::Interface > > resolveInvInterface(const std::string &invInterfaceName, const std::string &invInterfaceType)
Retrieve the child object with the specified naming properties.
Definition: LocalInventoryEp.hpp:725
boost::optional< const std::string & > getUuid()
Get the value of uuid if it has been set.
Definition: LocalInventoryEp.hpp:356
modelgbp::inv::LocalInventoryEp & setUuid(const std::string &newValue)
Set uuid to the specified value in the currently-active mutator.
Definition: LocalInventoryEp.hpp:381
boost::optional< uint16_t > getAccessVlan()
Get the value of accessVlan if it has been set.
Definition: LocalInventoryEp.hpp:76
OF_SHARED_PTR< modelgbp::inv::LocalInventoryEpToGroupRSrc > addInvLocalInventoryEpToGroupRSrc()
Create a new child object with the specified naming properties and make it a child of this object in ...
Definition: LocalInventoryEp.hpp:509
static boost::optional< OF_SHARED_PTR< modelgbp::inv::DHCPv6Config > > resolve(opflex::ofcore::OFFramework &framework, const opflex::modb::URI &uri)
Retrieve an instance of DHCPv6Config from the managed object store.
Definition: DHCPv6Config.hpp:274
boost::optional< OF_SHARED_PTR< modelgbp::inv::Attribute > > resolveInvAttribute(const std::string &invAttributeName)
Retrieve the child object with the specified naming properties.
Definition: LocalInventoryEp.hpp:860
LocalInventoryEp(opflex::ofcore::OFFramework &framework, const opflex::modb::URI &uri, const OF_SHARED_PTR< const opflex::modb::mointernal::ObjectInstance > &oi)
Construct an instance of LocalInventoryEp.
Definition: LocalInventoryEp.hpp:1066
const std::string & getEgMappingAlias(const std::string &defaultValue)
Get the value of egMappingAlias if set, otherwise the value of default passed in. ...
Definition: LocalInventoryEp.hpp:200
static void unregisterListener(opflex::modb::ObjectListener *listener)
Unregister a listener from updates to this class from the default framework instance.
Definition: LocalInventoryEp.hpp:1056
modelgbp::inv::LocalInventoryEp & setEgMappingAlias(const std::string &newValue)
Set egMappingAlias to the specified value in the currently-active mutator.
Definition: LocalInventoryEp.hpp:213
boost::optional< const opflex::modb::MAC & > getMac()
Get the value of mac if it has been set.
Definition: LocalInventoryEp.hpp:300
SOME COPYRIGHT.
Definition: OpcodeEnumT.hpp:12
const std::string & getUuid(const std::string &defaultValue)
Get the value of uuid if set, otherwise the value of default passed in.
Definition: LocalInventoryEp.hpp:368
static boost::optional< OF_SHARED_PTR< modelgbp::inv::Ip > > resolve(opflex::ofcore::OFFramework &framework, const opflex::modb::URI &uri)
Retrieve an instance of Ip from the managed object store.
Definition: Ip.hpp:210
boost::optional< OF_SHARED_PTR< modelgbp::inv::LocalInventoryEpToSecGroupRSrc > > resolveInvLocalInventoryEpToSecGroupRSrc(const std::string &invLocalInventoryEpToSecGroupRSrcTargetName)
Retrieve the child object with the specified naming properties.
Definition: LocalInventoryEp.hpp:532
modelgbp::inv::LocalInventoryEp & unsetMac()
Unset mac in the currently-active mutator.
Definition: LocalInventoryEp.hpp:337
boost::optional< const uint8_t > getIfaceSecurity()
Get the value of ifaceSecurity if it has been set.
Definition: LocalInventoryEp.hpp:244