modelgbp Generated OpFlex Model  1.7.0
L2Ep.hpp
1 
10 #pragma once
11 #ifndef GI_EPR_L2EP_HPP
12 #define GI_EPR_L2EP_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(gbpe/ReportedEpAttributeSet)
19  */
20 #include "modelgbp/gbpe/ReportedEpAttributeSet.hpp"
21 /*
22  * contains: item:mclass(gbpe/Attestation)
23  */
24 #include "modelgbp/gbpe/Attestation.hpp"
25 /*
26  * contains: item:mclass(span/LocalEpFromEpRTgt)
27  */
28 #include "modelgbp/span/LocalEpFromEpRTgt.hpp"
29 /*
30  * contains: item:mclass(epr/SecurityGroupContext)
31  */
32 #include "modelgbp/epr/SecurityGroupContext.hpp"
33 /*
34  * contains: item:mclass(epr/L3Net)
35  */
36 #include "modelgbp/epr/L3Net.hpp"
37 
38 namespace modelgbp {
39 namespace epr {
40 
41 class L2Ep
42  : public opflex::modb::mointernal::MO
43 {
44 public:
45 
49  static const opflex::modb::class_id_t CLASS_ID = 99;
50 
55  bool isContextSet()
56  {
57  return getObjectInstance().isSet(3244036ul, opflex::modb::PropertyInfo::STRING);
58  }
59 
64  boost::optional<const std::string&> getContext()
65  {
66  if (isContextSet())
67  return getObjectInstance().getString(3244036ul);
68  return boost::none;
69  }
70 
76  const std::string& getContext(const std::string& defaultValue)
77  {
78  return getContext().get_value_or(defaultValue);
79  }
80 
89  modelgbp::epr::L2Ep& setContext(const std::string& newValue)
90  {
91  getTLMutator().modify(getClassId(), getURI())->setString(3244036ul, newValue);
92  return *this;
93  }
94 
102  {
103  getTLMutator().modify(getClassId(), getURI())->unset(3244036ul, opflex::modb::PropertyInfo::STRING, opflex::modb::PropertyInfo::SCALAR);
104  return *this;
105  }
106 
111  bool isGroupSet()
112  {
113  return getObjectInstance().isSet(3244035ul, opflex::modb::PropertyInfo::STRING);
114  }
115 
120  boost::optional<const std::string&> getGroup()
121  {
122  if (isGroupSet())
123  return getObjectInstance().getString(3244035ul);
124  return boost::none;
125  }
126 
132  const std::string& getGroup(const std::string& defaultValue)
133  {
134  return getGroup().get_value_or(defaultValue);
135  }
136 
145  modelgbp::epr::L2Ep& setGroup(const std::string& newValue)
146  {
147  getTLMutator().modify(getClassId(), getURI())->setString(3244035ul, newValue);
148  return *this;
149  }
150 
158  {
159  getTLMutator().modify(getClassId(), getURI())->unset(3244035ul, opflex::modb::PropertyInfo::STRING, opflex::modb::PropertyInfo::SCALAR);
160  return *this;
161  }
162 
168  {
169  return getObjectInstance().isSet(3244037ul, opflex::modb::PropertyInfo::STRING);
170  }
171 
176  boost::optional<const std::string&> getInterfaceName()
177  {
178  if (isInterfaceNameSet())
179  return getObjectInstance().getString(3244037ul);
180  return boost::none;
181  }
182 
188  const std::string& getInterfaceName(const std::string& defaultValue)
189  {
190  return getInterfaceName().get_value_or(defaultValue);
191  }
192 
201  modelgbp::epr::L2Ep& setInterfaceName(const std::string& newValue)
202  {
203  getTLMutator().modify(getClassId(), getURI())->setString(3244037ul, newValue);
204  return *this;
205  }
206 
214  {
215  getTLMutator().modify(getClassId(), getURI())->unset(3244037ul, opflex::modb::PropertyInfo::STRING, opflex::modb::PropertyInfo::SCALAR);
216  return *this;
217  }
218 
223  bool isMacSet()
224  {
225  return getObjectInstance().isSet(3244034ul, opflex::modb::PropertyInfo::MAC);
226  }
227 
232  boost::optional<const opflex::modb::MAC&> getMac()
233  {
234  if (isMacSet())
235  return getObjectInstance().getMAC(3244034ul);
236  return boost::none;
237  }
238 
244  const opflex::modb::MAC& getMac(const opflex::modb::MAC& defaultValue)
245  {
246  return getMac().get_value_or(defaultValue);
247  }
248 
257  modelgbp::epr::L2Ep& setMac(const opflex::modb::MAC& newValue)
258  {
259  getTLMutator().modify(getClassId(), getURI())->setMAC(3244034ul, newValue);
260  return *this;
261  }
262 
270  {
271  getTLMutator().modify(getClassId(), getURI())->unset(3244034ul, opflex::modb::PropertyInfo::MAC, opflex::modb::PropertyInfo::SCALAR);
272  return *this;
273  }
274 
279  bool isUuidSet()
280  {
281  return getObjectInstance().isSet(3244033ul, opflex::modb::PropertyInfo::STRING);
282  }
283 
288  boost::optional<const std::string&> getUuid()
289  {
290  if (isUuidSet())
291  return getObjectInstance().getString(3244033ul);
292  return boost::none;
293  }
294 
300  const std::string& getUuid(const std::string& defaultValue)
301  {
302  return getUuid().get_value_or(defaultValue);
303  }
304 
313  modelgbp::epr::L2Ep& setUuid(const std::string& newValue)
314  {
315  getTLMutator().modify(getClassId(), getURI())->setString(3244033ul, newValue);
316  return *this;
317  }
318 
326  {
327  getTLMutator().modify(getClassId(), getURI())->unset(3244033ul, opflex::modb::PropertyInfo::STRING, opflex::modb::PropertyInfo::SCALAR);
328  return *this;
329  }
330 
335  bool isVmNameSet()
336  {
337  return getObjectInstance().isSet(3244038ul, opflex::modb::PropertyInfo::STRING);
338  }
339 
344  boost::optional<const std::string&> getVmName()
345  {
346  if (isVmNameSet())
347  return getObjectInstance().getString(3244038ul);
348  return boost::none;
349  }
350 
356  const std::string& getVmName(const std::string& defaultValue)
357  {
358  return getVmName().get_value_or(defaultValue);
359  }
360 
369  modelgbp::epr::L2Ep& setVmName(const std::string& newValue)
370  {
371  getTLMutator().modify(getClassId(), getURI())->setString(3244038ul, newValue);
372  return *this;
373  }
374 
382  {
383  getTLMutator().modify(getClassId(), getURI())->unset(3244038ul, opflex::modb::PropertyInfo::STRING, opflex::modb::PropertyInfo::SCALAR);
384  return *this;
385  }
386 
398  static boost::optional<OF_SHARED_PTR<modelgbp::epr::L2Ep> > resolve(
399  opflex::ofcore::OFFramework& framework,
400  const opflex::modb::URI& uri)
401  {
402  return opflex::modb::mointernal::MO::resolve<modelgbp::epr::L2Ep>(framework, CLASS_ID, uri);
403  }
404 
416  static boost::optional<OF_SHARED_PTR<modelgbp::epr::L2Ep> > resolve(
417  const opflex::modb::URI& uri)
418  {
419  return opflex::modb::mointernal::MO::resolve<modelgbp::epr::L2Ep>(opflex::ofcore::OFFramework::defaultInstance(), CLASS_ID, uri);
420  }
421 
440  static boost::optional<OF_SHARED_PTR<modelgbp::epr::L2Ep> > resolve(
441  opflex::ofcore::OFFramework& framework,
442  const std::string& eprL2EpContext,
443  const opflex::modb::MAC& eprL2EpMac)
444  {
445  return resolve(framework,opflex::modb::URIBuilder().addElement("EprL2Universe").addElement("EprL2Ep").addElement(eprL2EpContext).addElement(eprL2EpMac).build());
446  }
447 
465  static boost::optional<OF_SHARED_PTR<modelgbp::epr::L2Ep> > resolve(
466  const std::string& eprL2EpContext,
467  const opflex::modb::MAC& eprL2EpMac)
468  {
469  return resolve(opflex::ofcore::OFFramework::defaultInstance(),eprL2EpContext,eprL2EpMac);
470  }
471 
481  boost::optional<OF_SHARED_PTR<modelgbp::gbpe::ReportedEpAttributeSet> > resolveGbpeReportedEpAttributeSet(
482  )
483  {
484  return modelgbp::gbpe::ReportedEpAttributeSet::resolve(getFramework(), opflex::modb::URIBuilder(getURI()).addElement("GbpeReportedEpAttributeSet").build());
485  }
486 
497  OF_SHARED_PTR<modelgbp::gbpe::ReportedEpAttributeSet> addGbpeReportedEpAttributeSet(
498  )
499  {
500  OF_SHARED_PTR<modelgbp::gbpe::ReportedEpAttributeSet> result = addChild<modelgbp::gbpe::ReportedEpAttributeSet>(
501  CLASS_ID, getURI(), 2150727718ul, 38,
502  opflex::modb::URIBuilder(getURI()).addElement("GbpeReportedEpAttributeSet").build()
503  );
504  return result;
505  }
506 
518  boost::optional<OF_SHARED_PTR<modelgbp::gbpe::Attestation> > resolveGbpeAttestation(
519  const std::string& gbpeAttestationName)
520  {
521  return modelgbp::gbpe::Attestation::resolve(getFramework(), opflex::modb::URIBuilder(getURI()).addElement("GbpeAttestation").addElement(gbpeAttestationName).build());
522  }
523 
536  OF_SHARED_PTR<modelgbp::gbpe::Attestation> addGbpeAttestation(
537  const std::string& gbpeAttestationName)
538  {
539  OF_SHARED_PTR<modelgbp::gbpe::Attestation> result = addChild<modelgbp::gbpe::Attestation>(
540  CLASS_ID, getURI(), 2150727727ul, 47,
541  opflex::modb::URIBuilder(getURI()).addElement("GbpeAttestation").addElement(gbpeAttestationName).build()
542  );
543  result->setName(gbpeAttestationName);
544  return result;
545  }
546 
561  void resolveGbpeAttestation(/* out */ std::vector<OF_SHARED_PTR<modelgbp::gbpe::Attestation> >& out)
562  {
563  opflex::modb::mointernal::MO::resolveChildren<modelgbp::gbpe::Attestation>(
564  getFramework(), CLASS_ID, getURI(), 2150727727ul, 47, out);
565  }
566 
578  boost::optional<OF_SHARED_PTR<modelgbp::span::LocalEpFromEpRTgt> > resolveSpanLocalEpFromEpRTgt(
579  const std::string& spanLocalEpFromEpRTgtSource)
580  {
581  return modelgbp::span::LocalEpFromEpRTgt::resolve(getFramework(), opflex::modb::URIBuilder(getURI()).addElement("SpanLocalEpFromEpRTgt").addElement(spanLocalEpFromEpRTgtSource).build());
582  }
583 
596  OF_SHARED_PTR<modelgbp::span::LocalEpFromEpRTgt> addSpanLocalEpFromEpRTgt(
597  const std::string& spanLocalEpFromEpRTgtSource)
598  {
599  OF_SHARED_PTR<modelgbp::span::LocalEpFromEpRTgt> result = addChild<modelgbp::span::LocalEpFromEpRTgt>(
600  CLASS_ID, getURI(), 2150727751ul, 71,
601  opflex::modb::URIBuilder(getURI()).addElement("SpanLocalEpFromEpRTgt").addElement(spanLocalEpFromEpRTgtSource).build()
602  );
603  result->setSource(spanLocalEpFromEpRTgtSource);
604  return result;
605  }
606 
621  void resolveSpanLocalEpFromEpRTgt(/* out */ std::vector<OF_SHARED_PTR<modelgbp::span::LocalEpFromEpRTgt> >& out)
622  {
623  opflex::modb::mointernal::MO::resolveChildren<modelgbp::span::LocalEpFromEpRTgt>(
624  getFramework(), CLASS_ID, getURI(), 2150727751ul, 71, out);
625  }
626 
638  boost::optional<OF_SHARED_PTR<modelgbp::epr::SecurityGroupContext> > resolveEprSecurityGroupContext(
639  const std::string& eprSecurityGroupContextSecGroup)
640  {
641  return modelgbp::epr::SecurityGroupContext::resolve(getFramework(), opflex::modb::URIBuilder(getURI()).addElement("EprSecurityGroupContext").addElement(eprSecurityGroupContextSecGroup).build());
642  }
643 
656  OF_SHARED_PTR<modelgbp::epr::SecurityGroupContext> addEprSecurityGroupContext(
657  const std::string& eprSecurityGroupContextSecGroup)
658  {
659  OF_SHARED_PTR<modelgbp::epr::SecurityGroupContext> result = addChild<modelgbp::epr::SecurityGroupContext>(
660  CLASS_ID, getURI(), 2150727778ul, 98,
661  opflex::modb::URIBuilder(getURI()).addElement("EprSecurityGroupContext").addElement(eprSecurityGroupContextSecGroup).build()
662  );
663  result->setSecGroup(eprSecurityGroupContextSecGroup);
664  return result;
665  }
666 
681  void resolveEprSecurityGroupContext(/* out */ std::vector<OF_SHARED_PTR<modelgbp::epr::SecurityGroupContext> >& out)
682  {
683  opflex::modb::mointernal::MO::resolveChildren<modelgbp::epr::SecurityGroupContext>(
684  getFramework(), CLASS_ID, getURI(), 2150727778ul, 98, out);
685  }
686 
698  boost::optional<OF_SHARED_PTR<modelgbp::epr::L3Net> > resolveEprL3Net(
699  const std::string& eprL3NetIp)
700  {
701  return modelgbp::epr::L3Net::resolve(getFramework(), opflex::modb::URIBuilder(getURI()).addElement("EprL3Net").addElement(eprL3NetIp).build());
702  }
703 
716  OF_SHARED_PTR<modelgbp::epr::L3Net> addEprL3Net(
717  const std::string& eprL3NetIp)
718  {
719  OF_SHARED_PTR<modelgbp::epr::L3Net> result = addChild<modelgbp::epr::L3Net>(
720  CLASS_ID, getURI(), 2150727780ul, 100,
721  opflex::modb::URIBuilder(getURI()).addElement("EprL3Net").addElement(eprL3NetIp).build()
722  );
723  result->setIp(eprL3NetIp);
724  return result;
725  }
726 
741  void resolveEprL3Net(/* out */ std::vector<OF_SHARED_PTR<modelgbp::epr::L3Net> >& out)
742  {
743  opflex::modb::mointernal::MO::resolveChildren<modelgbp::epr::L3Net>(
744  getFramework(), CLASS_ID, getURI(), 2150727780ul, 100, out);
745  }
746 
755  void remove()
756  {
757  getTLMutator().remove(CLASS_ID, getURI());
758  }
759 
770  static void remove(opflex::ofcore::OFFramework& framework,
771  const opflex::modb::URI& uri)
772  {
773  MO::remove(framework, CLASS_ID, uri);
774  }
775 
786  static void remove(const opflex::modb::URI& uri)
787  {
788  remove(opflex::ofcore::OFFramework::defaultInstance(), uri);
789  }
790 
807  static void remove(
808  opflex::ofcore::OFFramework& framework,
809  const std::string& eprL2EpContext,
810  const opflex::modb::MAC& eprL2EpMac)
811  {
812  MO::remove(framework, CLASS_ID, opflex::modb::URIBuilder().addElement("EprL2Universe").addElement("EprL2Ep").addElement(eprL2EpContext).addElement(eprL2EpMac).build());
813  }
814 
831  static void remove(
832  const std::string& eprL2EpContext,
833  const opflex::modb::MAC& eprL2EpMac)
834  {
835  remove(opflex::ofcore::OFFramework::defaultInstance(),eprL2EpContext,eprL2EpMac);
836  }
837 
849  static void registerListener(
850  opflex::ofcore::OFFramework& framework,
851  opflex::modb::ObjectListener* listener)
852  {
853  opflex::modb::mointernal
854  ::MO::registerListener(framework, listener, CLASS_ID);
855  }
856 
868  static void registerListener(
869  opflex::modb::ObjectListener* listener)
870  {
871  registerListener(opflex::ofcore::OFFramework::defaultInstance(), listener);
872  }
873 
880  static void unregisterListener(
881  opflex::ofcore::OFFramework& framework,
882  opflex::modb::ObjectListener* listener)
883  {
884  opflex::modb::mointernal
885  ::MO::unregisterListener(framework, listener, CLASS_ID);
886  }
887 
894  static void unregisterListener(
895  opflex::modb::ObjectListener* listener)
896  {
897  unregisterListener(opflex::ofcore::OFFramework::defaultInstance(), listener);
898  }
899 
905  opflex::ofcore::OFFramework& framework,
906  const opflex::modb::URI& uri,
907  const OF_SHARED_PTR<const opflex::modb::mointernal::ObjectInstance>& oi)
908  : MO(framework, CLASS_ID, uri, oi) { }
909 }; // class L2Ep
910 
911 } // namespace epr
912 } // namespace modelgbp
913 #endif // GI_EPR_L2EP_HPP
bool isVmNameSet()
Check whether vmName has been set.
Definition: L2Ep.hpp:335
modelgbp::epr::L2Ep & setUuid(const std::string &newValue)
Set uuid to the specified value in the currently-active mutator.
Definition: L2Ep.hpp:313
modelgbp::epr::L2Ep & unsetUuid()
Unset uuid in the currently-active mutator.
Definition: L2Ep.hpp:325
boost::optional< OF_SHARED_PTR< modelgbp::gbpe::ReportedEpAttributeSet > > resolveGbpeReportedEpAttributeSet()
Retrieve the child object with the specified naming properties.
Definition: L2Ep.hpp:481
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: L2Ep.hpp:868
static boost::optional< OF_SHARED_PTR< modelgbp::epr::SecurityGroupContext > > resolve(opflex::ofcore::OFFramework &framework, const opflex::modb::URI &uri)
Retrieve an instance of SecurityGroupContext from the managed object store.
Definition: SecurityGroupContext.hpp:154
boost::optional< const std::string & > getContext()
Get the value of context if it has been set.
Definition: L2Ep.hpp:64
modelgbp::epr::L2Ep & setVmName(const std::string &newValue)
Set vmName to the specified value in the currently-active mutator.
Definition: L2Ep.hpp:369
OF_SHARED_PTR< modelgbp::epr::SecurityGroupContext > addEprSecurityGroupContext(const std::string &eprSecurityGroupContextSecGroup)
Create a new child object with the specified naming properties and make it a child of this object in ...
Definition: L2Ep.hpp:656
modelgbp::epr::L2Ep & unsetGroup()
Unset group in the currently-active mutator.
Definition: L2Ep.hpp:157
static boost::optional< OF_SHARED_PTR< modelgbp::epr::L2Ep > > resolve(const opflex::modb::URI &uri)
Retrieve an instance of L2Ep from the managed object store using the default framework instance...
Definition: L2Ep.hpp:416
OF_SHARED_PTR< modelgbp::span::LocalEpFromEpRTgt > addSpanLocalEpFromEpRTgt(const std::string &spanLocalEpFromEpRTgtSource)
Create a new child object with the specified naming properties and make it a child of this object in ...
Definition: L2Ep.hpp:596
L2Ep(opflex::ofcore::OFFramework &framework, const opflex::modb::URI &uri, const OF_SHARED_PTR< const opflex::modb::mointernal::ObjectInstance > &oi)
Construct an instance of L2Ep.
Definition: L2Ep.hpp:904
static boost::optional< OF_SHARED_PTR< modelgbp::epr::L2Ep > > resolve(opflex::ofcore::OFFramework &framework, const opflex::modb::URI &uri)
Retrieve an instance of L2Ep from the managed object store.
Definition: L2Ep.hpp:398
boost::optional< const std::string & > getGroup()
Get the value of group if it has been set.
Definition: L2Ep.hpp:120
modelgbp::epr::L2Ep & unsetInterfaceName()
Unset interfaceName in the currently-active mutator.
Definition: L2Ep.hpp:213
modelgbp::epr::L2Ep & setContext(const std::string &newValue)
Set context to the specified value in the currently-active mutator.
Definition: L2Ep.hpp:89
void resolveSpanLocalEpFromEpRTgt(std::vector< OF_SHARED_PTR< modelgbp::span::LocalEpFromEpRTgt > > &out)
Resolve and retrieve all of the immediate children of type modelgbp::span::LocalEpFromEpRTgt.
Definition: L2Ep.hpp:621
const std::string & getInterfaceName(const std::string &defaultValue)
Get the value of interfaceName if set, otherwise the value of default passed in.
Definition: L2Ep.hpp:188
const std::string & getVmName(const std::string &defaultValue)
Get the value of vmName if set, otherwise the value of default passed in.
Definition: L2Ep.hpp:356
boost::optional< OF_SHARED_PTR< modelgbp::gbpe::Attestation > > resolveGbpeAttestation(const std::string &gbpeAttestationName)
Retrieve the child object with the specified naming properties.
Definition: L2Ep.hpp:518
static boost::optional< OF_SHARED_PTR< modelgbp::gbpe::ReportedEpAttributeSet > > resolve(opflex::ofcore::OFFramework &framework, const opflex::modb::URI &uri)
Retrieve an instance of ReportedEpAttributeSet from the managed object store.
Definition: ReportedEpAttributeSet.hpp:46
modelgbp::epr::L2Ep & setMac(const opflex::modb::MAC &newValue)
Set mac to the specified value in the currently-active mutator.
Definition: L2Ep.hpp:257
boost::optional< const std::string & > getUuid()
Get the value of uuid if it has been set.
Definition: L2Ep.hpp:288
void resolveEprL3Net(std::vector< OF_SHARED_PTR< modelgbp::epr::L3Net > > &out)
Resolve and retrieve all of the immediate children of type modelgbp::epr::L3Net.
Definition: L2Ep.hpp:741
static void unregisterListener(opflex::ofcore::OFFramework &framework, opflex::modb::ObjectListener *listener)
Unregister a listener from updates to this class.
Definition: L2Ep.hpp:880
modelgbp::epr::L2Ep & unsetVmName()
Unset vmName in the currently-active mutator.
Definition: L2Ep.hpp:381
modelgbp::epr::L2Ep & setInterfaceName(const std::string &newValue)
Set interfaceName to the specified value in the currently-active mutator.
Definition: L2Ep.hpp:201
boost::optional< const opflex::modb::MAC & > getMac()
Get the value of mac if it has been set.
Definition: L2Ep.hpp:232
bool isMacSet()
Check whether mac has been set.
Definition: L2Ep.hpp:223
boost::optional< OF_SHARED_PTR< modelgbp::epr::L3Net > > resolveEprL3Net(const std::string &eprL3NetIp)
Retrieve the child object with the specified naming properties.
Definition: L2Ep.hpp:698
OF_SHARED_PTR< modelgbp::gbpe::Attestation > addGbpeAttestation(const std::string &gbpeAttestationName)
Create a new child object with the specified naming properties and make it a child of this object in ...
Definition: L2Ep.hpp:536
modelgbp::epr::L2Ep & unsetMac()
Unset mac in the currently-active mutator.
Definition: L2Ep.hpp:269
bool isContextSet()
Check whether context has been set.
Definition: L2Ep.hpp:55
OF_SHARED_PTR< modelgbp::epr::L3Net > addEprL3Net(const std::string &eprL3NetIp)
Create a new child object with the specified naming properties and make it a child of this object in ...
Definition: L2Ep.hpp:716
const std::string & getContext(const std::string &defaultValue)
Get the value of context if set, otherwise the value of default passed in.
Definition: L2Ep.hpp:76
boost::optional< OF_SHARED_PTR< modelgbp::span::LocalEpFromEpRTgt > > resolveSpanLocalEpFromEpRTgt(const std::string &spanLocalEpFromEpRTgtSource)
Retrieve the child object with the specified naming properties.
Definition: L2Ep.hpp:578
static void unregisterListener(opflex::modb::ObjectListener *listener)
Unregister a listener from updates to this class from the default framework instance.
Definition: L2Ep.hpp:894
static boost::optional< OF_SHARED_PTR< modelgbp::epr::L3Net > > resolve(opflex::ofcore::OFFramework &framework, const opflex::modb::URI &uri)
Retrieve an instance of L3Net from the managed object store.
Definition: L3Net.hpp:102
modelgbp::epr::L2Ep & setGroup(const std::string &newValue)
Set group to the specified value in the currently-active mutator.
Definition: L2Ep.hpp:145
const std::string & getUuid(const std::string &defaultValue)
Get the value of uuid if set, otherwise the value of default passed in.
Definition: L2Ep.hpp:300
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: L2Ep.hpp:244
void resolveEprSecurityGroupContext(std::vector< OF_SHARED_PTR< modelgbp::epr::SecurityGroupContext > > &out)
Resolve and retrieve all of the immediate children of type modelgbp::epr::SecurityGroupContext.
Definition: L2Ep.hpp:681
OF_SHARED_PTR< modelgbp::gbpe::ReportedEpAttributeSet > addGbpeReportedEpAttributeSet()
Create a new child object with the specified naming properties and make it a child of this object in ...
Definition: L2Ep.hpp:497
static boost::optional< OF_SHARED_PTR< modelgbp::span::LocalEpFromEpRTgt > > resolve(opflex::ofcore::OFFramework &framework, const opflex::modb::URI &uri)
Retrieve an instance of LocalEpFromEpRTgt from the managed object store.
Definition: LocalEpFromEpRTgt.hpp:210
boost::optional< const std::string & > getVmName()
Get the value of vmName if it has been set.
Definition: L2Ep.hpp:344
boost::optional< OF_SHARED_PTR< modelgbp::epr::SecurityGroupContext > > resolveEprSecurityGroupContext(const std::string &eprSecurityGroupContextSecGroup)
Retrieve the child object with the specified naming properties.
Definition: L2Ep.hpp:638
bool isGroupSet()
Check whether group has been set.
Definition: L2Ep.hpp:111
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: L2Ep.hpp:849
static const opflex::modb::class_id_t CLASS_ID
The unique class ID for L2Ep.
Definition: L2Ep.hpp:49
modelgbp::epr::L2Ep & unsetContext()
Unset context in the currently-active mutator.
Definition: L2Ep.hpp:101
bool isUuidSet()
Check whether uuid has been set.
Definition: L2Ep.hpp:279
void resolveGbpeAttestation(std::vector< OF_SHARED_PTR< modelgbp::gbpe::Attestation > > &out)
Resolve and retrieve all of the immediate children of type modelgbp::gbpe::Attestation.
Definition: L2Ep.hpp:561
const std::string & getGroup(const std::string &defaultValue)
Get the value of group if set, otherwise the value of default passed in.
Definition: L2Ep.hpp:132
bool isInterfaceNameSet()
Check whether interfaceName has been set.
Definition: L2Ep.hpp:167
boost::optional< const std::string & > getInterfaceName()
Get the value of interfaceName if it has been set.
Definition: L2Ep.hpp:176
static boost::optional< OF_SHARED_PTR< modelgbp::epr::L2Ep > > resolve(const std::string &eprL2EpContext, const opflex::modb::MAC &eprL2EpMac)
Retrieve an instance of L2Ep from the default managed object store by constructing its URI from the p...
Definition: L2Ep.hpp:465
static boost::optional< OF_SHARED_PTR< modelgbp::epr::L2Ep > > resolve(opflex::ofcore::OFFramework &framework, const std::string &eprL2EpContext, const opflex::modb::MAC &eprL2EpMac)
Retrieve an instance of L2Ep from the managed object store by constructing its URI from the path elem...
Definition: L2Ep.hpp:440
static boost::optional< OF_SHARED_PTR< modelgbp::gbpe::Attestation > > resolve(opflex::ofcore::OFFramework &framework, const opflex::modb::URI &uri)
Retrieve an instance of Attestation from the managed object store.
Definition: Attestation.hpp:210
Definition: L2Ep.hpp:41