modelgbp Generated OpFlex Model 1.7.0
Space.hpp
1
10#pragma once
11#ifndef GI_POLICY_SPACE_HPP
12#define GI_POLICY_SPACE_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/L24Classifier)
19 */
20#include "modelgbp/gbpe/L24Classifier.hpp"
21/*
22 * contains: item:mclass(gbp/AllowDenyAction)
23 */
24#include "modelgbp/gbp/AllowDenyAction.hpp"
25/*
26 * contains: item:mclass(gbp/Contract)
27 */
28#include "modelgbp/gbp/Contract.hpp"
29/*
30 * contains: item:mclass(gbp/EpGroup)
31 */
32#include "modelgbp/gbp/EpGroup.hpp"
33/*
34 * contains: item:mclass(gbp/BridgeDomain)
35 */
36#include "modelgbp/gbp/BridgeDomain.hpp"
37/*
38 * contains: item:mclass(gbp/FloodDomain)
39 */
40#include "modelgbp/gbp/FloodDomain.hpp"
41/*
42 * contains: item:mclass(gbp/RoutingDomain)
43 */
44#include "modelgbp/gbp/RoutingDomain.hpp"
45/*
46 * contains: item:mclass(gbp/Subnets)
47 */
48#include "modelgbp/gbp/Subnets.hpp"
49/*
50 * contains: item:mclass(gbp/SecGroup)
51 */
52#include "modelgbp/gbp/SecGroup.hpp"
53
54namespace modelgbp {
55namespace policy {
56
57class Space
58 : public opflex::modb::mointernal::MO
59{
60public:
61
65 static const opflex::modb::class_id_t CLASS_ID = 224;
66
71 bool isNameSet()
72 {
73 return getObjectInstance().isSet(7340033ul, opflex::modb::PropertyInfo::STRING);
74 }
75
80 boost::optional<const std::string&> getName()
81 {
82 if (isNameSet())
83 return getObjectInstance().getString(7340033ul);
84 return boost::none;
85 }
86
92 const std::string& getName(const std::string& defaultValue)
93 {
94 return getName().get_value_or(defaultValue);
95 }
96
105 modelgbp::policy::Space& setName(const std::string& newValue)
106 {
107 getTLMutator().modify(getClassId(), getURI())->setString(7340033ul, newValue);
108 return *this;
109 }
110
118 {
119 getTLMutator().modify(getClassId(), getURI())->unset(7340033ul, opflex::modb::PropertyInfo::STRING, opflex::modb::PropertyInfo::SCALAR);
120 return *this;
121 }
122
134 static boost::optional<OF_SHARED_PTR<modelgbp::policy::Space> > resolve(
135 opflex::ofcore::OFFramework& framework,
136 const opflex::modb::URI& uri)
137 {
138 return opflex::modb::mointernal::MO::resolve<modelgbp::policy::Space>(framework, CLASS_ID, uri);
139 }
140
152 static boost::optional<OF_SHARED_PTR<modelgbp::policy::Space> > resolve(
153 const opflex::modb::URI& uri)
154 {
155 return opflex::modb::mointernal::MO::resolve<modelgbp::policy::Space>(opflex::ofcore::OFFramework::defaultInstance(), CLASS_ID, uri);
156 }
157
174 static boost::optional<OF_SHARED_PTR<modelgbp::policy::Space> > resolve(
175 opflex::ofcore::OFFramework& framework,
176 const std::string& policySpaceName)
177 {
178 return resolve(framework,opflex::modb::URIBuilder().addElement("PolicyUniverse").addElement("PolicySpace").addElement(policySpaceName).build());
179 }
180
196 static boost::optional<OF_SHARED_PTR<modelgbp::policy::Space> > resolve(
197 const std::string& policySpaceName)
198 {
199 return resolve(opflex::ofcore::OFFramework::defaultInstance(),policySpaceName);
200 }
201
213 boost::optional<OF_SHARED_PTR<modelgbp::gbpe::L24Classifier> > resolveGbpeL24Classifier(
214 const std::string& gbpeL24ClassifierName)
215 {
216 return modelgbp::gbpe::L24Classifier::resolve(getFramework(), opflex::modb::URIBuilder(getURI()).addElement("GbpeL24Classifier").addElement(gbpeL24ClassifierName).build());
217 }
218
231 OF_SHARED_PTR<modelgbp::gbpe::L24Classifier> addGbpeL24Classifier(
232 const std::string& gbpeL24ClassifierName)
233 {
234 OF_SHARED_PTR<modelgbp::gbpe::L24Classifier> result = addChild<modelgbp::gbpe::L24Classifier>(
235 CLASS_ID, getURI(), 2154823722ul, 42,
236 opflex::modb::URIBuilder(getURI()).addElement("GbpeL24Classifier").addElement(gbpeL24ClassifierName).build()
237 );
238 result->setName(gbpeL24ClassifierName);
239 return result;
240 }
241
256 void resolveGbpeL24Classifier(/* out */ std::vector<OF_SHARED_PTR<modelgbp::gbpe::L24Classifier> >& out)
257 {
258 opflex::modb::mointernal::MO::resolveChildren<modelgbp::gbpe::L24Classifier>(
259 getFramework(), CLASS_ID, getURI(), 2154823722ul, 42, out);
260 }
261
273 boost::optional<OF_SHARED_PTR<modelgbp::gbp::AllowDenyAction> > resolveGbpAllowDenyAction(
274 const std::string& gbpAllowDenyActionName)
275 {
276 return modelgbp::gbp::AllowDenyAction::resolve(getFramework(), opflex::modb::URIBuilder(getURI()).addElement("GbpAllowDenyAction").addElement(gbpAllowDenyActionName).build());
277 }
278
291 OF_SHARED_PTR<modelgbp::gbp::AllowDenyAction> addGbpAllowDenyAction(
292 const std::string& gbpAllowDenyActionName)
293 {
294 OF_SHARED_PTR<modelgbp::gbp::AllowDenyAction> result = addChild<modelgbp::gbp::AllowDenyAction>(
295 CLASS_ID, getURI(), 2154823821ul, 141,
296 opflex::modb::URIBuilder(getURI()).addElement("GbpAllowDenyAction").addElement(gbpAllowDenyActionName).build()
297 );
298 result->setName(gbpAllowDenyActionName);
299 return result;
300 }
301
316 void resolveGbpAllowDenyAction(/* out */ std::vector<OF_SHARED_PTR<modelgbp::gbp::AllowDenyAction> >& out)
317 {
318 opflex::modb::mointernal::MO::resolveChildren<modelgbp::gbp::AllowDenyAction>(
319 getFramework(), CLASS_ID, getURI(), 2154823821ul, 141, out);
320 }
321
333 boost::optional<OF_SHARED_PTR<modelgbp::gbp::Contract> > resolveGbpContract(
334 const std::string& gbpContractName)
335 {
336 return modelgbp::gbp::Contract::resolve(getFramework(), opflex::modb::URIBuilder(getURI()).addElement("GbpContract").addElement(gbpContractName).build());
337 }
338
351 OF_SHARED_PTR<modelgbp::gbp::Contract> addGbpContract(
352 const std::string& gbpContractName)
353 {
354 OF_SHARED_PTR<modelgbp::gbp::Contract> result = addChild<modelgbp::gbp::Contract>(
355 CLASS_ID, getURI(), 2154823823ul, 143,
356 opflex::modb::URIBuilder(getURI()).addElement("GbpContract").addElement(gbpContractName).build()
357 );
358 result->setName(gbpContractName);
359 return result;
360 }
361
376 void resolveGbpContract(/* out */ std::vector<OF_SHARED_PTR<modelgbp::gbp::Contract> >& out)
377 {
378 opflex::modb::mointernal::MO::resolveChildren<modelgbp::gbp::Contract>(
379 getFramework(), CLASS_ID, getURI(), 2154823823ul, 143, out);
380 }
381
393 boost::optional<OF_SHARED_PTR<modelgbp::gbp::EpGroup> > resolveGbpEpGroup(
394 const std::string& gbpEpGroupName)
395 {
396 return modelgbp::gbp::EpGroup::resolve(getFramework(), opflex::modb::URIBuilder(getURI()).addElement("GbpEpGroup").addElement(gbpEpGroupName).build());
397 }
398
411 OF_SHARED_PTR<modelgbp::gbp::EpGroup> addGbpEpGroup(
412 const std::string& gbpEpGroupName)
413 {
414 OF_SHARED_PTR<modelgbp::gbp::EpGroup> result = addChild<modelgbp::gbp::EpGroup>(
415 CLASS_ID, getURI(), 2154823832ul, 152,
416 opflex::modb::URIBuilder(getURI()).addElement("GbpEpGroup").addElement(gbpEpGroupName).build()
417 );
418 result->setName(gbpEpGroupName);
419 return result;
420 }
421
436 void resolveGbpEpGroup(/* out */ std::vector<OF_SHARED_PTR<modelgbp::gbp::EpGroup> >& out)
437 {
438 opflex::modb::mointernal::MO::resolveChildren<modelgbp::gbp::EpGroup>(
439 getFramework(), CLASS_ID, getURI(), 2154823832ul, 152, out);
440 }
441
453 boost::optional<OF_SHARED_PTR<modelgbp::gbp::BridgeDomain> > resolveGbpBridgeDomain(
454 const std::string& gbpBridgeDomainName)
455 {
456 return modelgbp::gbp::BridgeDomain::resolve(getFramework(), opflex::modb::URIBuilder(getURI()).addElement("GbpBridgeDomain").addElement(gbpBridgeDomainName).build());
457 }
458
471 OF_SHARED_PTR<modelgbp::gbp::BridgeDomain> addGbpBridgeDomain(
472 const std::string& gbpBridgeDomainName)
473 {
474 OF_SHARED_PTR<modelgbp::gbp::BridgeDomain> result = addChild<modelgbp::gbp::BridgeDomain>(
475 CLASS_ID, getURI(), 2154823861ul, 181,
476 opflex::modb::URIBuilder(getURI()).addElement("GbpBridgeDomain").addElement(gbpBridgeDomainName).build()
477 );
478 result->setName(gbpBridgeDomainName);
479 return result;
480 }
481
496 void resolveGbpBridgeDomain(/* out */ std::vector<OF_SHARED_PTR<modelgbp::gbp::BridgeDomain> >& out)
497 {
498 opflex::modb::mointernal::MO::resolveChildren<modelgbp::gbp::BridgeDomain>(
499 getFramework(), CLASS_ID, getURI(), 2154823861ul, 181, out);
500 }
501
513 boost::optional<OF_SHARED_PTR<modelgbp::gbp::FloodDomain> > resolveGbpFloodDomain(
514 const std::string& gbpFloodDomainName)
515 {
516 return modelgbp::gbp::FloodDomain::resolve(getFramework(), opflex::modb::URIBuilder(getURI()).addElement("GbpFloodDomain").addElement(gbpFloodDomainName).build());
517 }
518
531 OF_SHARED_PTR<modelgbp::gbp::FloodDomain> addGbpFloodDomain(
532 const std::string& gbpFloodDomainName)
533 {
534 OF_SHARED_PTR<modelgbp::gbp::FloodDomain> result = addChild<modelgbp::gbp::FloodDomain>(
535 CLASS_ID, getURI(), 2154823865ul, 185,
536 opflex::modb::URIBuilder(getURI()).addElement("GbpFloodDomain").addElement(gbpFloodDomainName).build()
537 );
538 result->setName(gbpFloodDomainName);
539 return result;
540 }
541
556 void resolveGbpFloodDomain(/* out */ std::vector<OF_SHARED_PTR<modelgbp::gbp::FloodDomain> >& out)
557 {
558 opflex::modb::mointernal::MO::resolveChildren<modelgbp::gbp::FloodDomain>(
559 getFramework(), CLASS_ID, getURI(), 2154823865ul, 185, out);
560 }
561
573 boost::optional<OF_SHARED_PTR<modelgbp::gbp::RoutingDomain> > resolveGbpRoutingDomain(
574 const std::string& gbpRoutingDomainName)
575 {
576 return modelgbp::gbp::RoutingDomain::resolve(getFramework(), opflex::modb::URIBuilder(getURI()).addElement("GbpRoutingDomain").addElement(gbpRoutingDomainName).build());
577 }
578
591 OF_SHARED_PTR<modelgbp::gbp::RoutingDomain> addGbpRoutingDomain(
592 const std::string& gbpRoutingDomainName)
593 {
594 OF_SHARED_PTR<modelgbp::gbp::RoutingDomain> result = addChild<modelgbp::gbp::RoutingDomain>(
595 CLASS_ID, getURI(), 2154823870ul, 190,
596 opflex::modb::URIBuilder(getURI()).addElement("GbpRoutingDomain").addElement(gbpRoutingDomainName).build()
597 );
598 result->setName(gbpRoutingDomainName);
599 return result;
600 }
601
616 void resolveGbpRoutingDomain(/* out */ std::vector<OF_SHARED_PTR<modelgbp::gbp::RoutingDomain> >& out)
617 {
618 opflex::modb::mointernal::MO::resolveChildren<modelgbp::gbp::RoutingDomain>(
619 getFramework(), CLASS_ID, getURI(), 2154823870ul, 190, out);
620 }
621
633 boost::optional<OF_SHARED_PTR<modelgbp::gbp::Subnets> > resolveGbpSubnets(
634 const std::string& gbpSubnetsName)
635 {
636 return modelgbp::gbp::Subnets::resolve(getFramework(), opflex::modb::URIBuilder(getURI()).addElement("GbpSubnets").addElement(gbpSubnetsName).build());
637 }
638
651 OF_SHARED_PTR<modelgbp::gbp::Subnets> addGbpSubnets(
652 const std::string& gbpSubnetsName)
653 {
654 OF_SHARED_PTR<modelgbp::gbp::Subnets> result = addChild<modelgbp::gbp::Subnets>(
655 CLASS_ID, getURI(), 2154823876ul, 196,
656 opflex::modb::URIBuilder(getURI()).addElement("GbpSubnets").addElement(gbpSubnetsName).build()
657 );
658 result->setName(gbpSubnetsName);
659 return result;
660 }
661
676 void resolveGbpSubnets(/* out */ std::vector<OF_SHARED_PTR<modelgbp::gbp::Subnets> >& out)
677 {
678 opflex::modb::mointernal::MO::resolveChildren<modelgbp::gbp::Subnets>(
679 getFramework(), CLASS_ID, getURI(), 2154823876ul, 196, out);
680 }
681
693 boost::optional<OF_SHARED_PTR<modelgbp::gbp::SecGroup> > resolveGbpSecGroup(
694 const std::string& gbpSecGroupName)
695 {
696 return modelgbp::gbp::SecGroup::resolve(getFramework(), opflex::modb::URIBuilder(getURI()).addElement("GbpSecGroup").addElement(gbpSecGroupName).build());
697 }
698
711 OF_SHARED_PTR<modelgbp::gbp::SecGroup> addGbpSecGroup(
712 const std::string& gbpSecGroupName)
713 {
714 OF_SHARED_PTR<modelgbp::gbp::SecGroup> result = addChild<modelgbp::gbp::SecGroup>(
715 CLASS_ID, getURI(), 2154823883ul, 203,
716 opflex::modb::URIBuilder(getURI()).addElement("GbpSecGroup").addElement(gbpSecGroupName).build()
717 );
718 result->setName(gbpSecGroupName);
719 return result;
720 }
721
736 void resolveGbpSecGroup(/* out */ std::vector<OF_SHARED_PTR<modelgbp::gbp::SecGroup> >& out)
737 {
738 opflex::modb::mointernal::MO::resolveChildren<modelgbp::gbp::SecGroup>(
739 getFramework(), CLASS_ID, getURI(), 2154823883ul, 203, out);
740 }
741
750 void remove()
751 {
752 getTLMutator().remove(CLASS_ID, getURI());
753 }
754
765 static void remove(opflex::ofcore::OFFramework& framework,
766 const opflex::modb::URI& uri)
767 {
768 MO::remove(framework, CLASS_ID, uri);
769 }
770
781 static void remove(const opflex::modb::URI& uri)
782 {
783 remove(opflex::ofcore::OFFramework::defaultInstance(), uri);
784 }
785
800 static void remove(
801 opflex::ofcore::OFFramework& framework,
802 const std::string& policySpaceName)
803 {
804 MO::remove(framework, CLASS_ID, opflex::modb::URIBuilder().addElement("PolicyUniverse").addElement("PolicySpace").addElement(policySpaceName).build());
805 }
806
821 static void remove(
822 const std::string& policySpaceName)
823 {
824 remove(opflex::ofcore::OFFramework::defaultInstance(),policySpaceName);
825 }
826
838 static void registerListener(
839 opflex::ofcore::OFFramework& framework,
840 opflex::modb::ObjectListener* listener)
841 {
842 opflex::modb::mointernal
843 ::MO::registerListener(framework, listener, CLASS_ID);
844 }
845
857 static void registerListener(
858 opflex::modb::ObjectListener* listener)
859 {
860 registerListener(opflex::ofcore::OFFramework::defaultInstance(), listener);
861 }
862
870 opflex::ofcore::OFFramework& framework,
871 opflex::modb::ObjectListener* listener)
872 {
873 opflex::modb::mointernal
874 ::MO::unregisterListener(framework, listener, CLASS_ID);
875 }
876
884 opflex::modb::ObjectListener* listener)
885 {
886 unregisterListener(opflex::ofcore::OFFramework::defaultInstance(), listener);
887 }
888
894 opflex::ofcore::OFFramework& framework,
895 const opflex::modb::URI& uri,
896 const OF_SHARED_PTR<const opflex::modb::mointernal::ObjectInstance>& oi)
897 : MO(framework, CLASS_ID, uri, oi) { }
898}; // class Space
899
900} // namespace policy
901} // namespace modelgbp
902#endif // GI_POLICY_SPACE_HPP
static boost::optional< OF_SHARED_PTR< modelgbp::gbp::AllowDenyAction > > resolve(opflex::ofcore::OFFramework &framework, const opflex::modb::URI &uri)
Retrieve an instance of AllowDenyAction from the managed object store.
Definition AllowDenyAction.hpp:214
static boost::optional< OF_SHARED_PTR< modelgbp::gbp::BridgeDomain > > resolve(opflex::ofcore::OFFramework &framework, const opflex::modb::URI &uri)
Retrieve an instance of BridgeDomain from the managed object store.
Definition BridgeDomain.hpp:174
static boost::optional< OF_SHARED_PTR< modelgbp::gbp::Contract > > resolve(opflex::ofcore::OFFramework &framework, const opflex::modb::URI &uri)
Retrieve an instance of Contract from the managed object store.
Definition Contract.hpp:122
static boost::optional< OF_SHARED_PTR< modelgbp::gbp::EpGroup > > resolve(opflex::ofcore::OFFramework &framework, const opflex::modb::URI &uri)
Retrieve an instance of EpGroup from the managed object store.
Definition EpGroup.hpp:210
static boost::optional< OF_SHARED_PTR< modelgbp::gbp::FloodDomain > > resolve(opflex::ofcore::OFFramework &framework, const opflex::modb::URI &uri)
Retrieve an instance of FloodDomain from the managed object store.
Definition FloodDomain.hpp:338
static boost::optional< OF_SHARED_PTR< modelgbp::gbp::RoutingDomain > > resolve(opflex::ofcore::OFFramework &framework, const opflex::modb::URI &uri)
Retrieve an instance of RoutingDomain from the managed object store.
Definition RoutingDomain.hpp:242
static boost::optional< OF_SHARED_PTR< modelgbp::gbp::SecGroup > > resolve(opflex::ofcore::OFFramework &framework, const opflex::modb::URI &uri)
Retrieve an instance of SecGroup from the managed object store.
Definition SecGroup.hpp:110
static boost::optional< OF_SHARED_PTR< modelgbp::gbp::Subnets > > resolve(opflex::ofcore::OFFramework &framework, const opflex::modb::URI &uri)
Retrieve an instance of Subnets from the managed object store.
Definition Subnets.hpp:118
static boost::optional< OF_SHARED_PTR< modelgbp::gbpe::L24Classifier > > resolve(opflex::ofcore::OFFramework &framework, const opflex::modb::URI &uri)
Retrieve an instance of L24Classifier from the managed object store.
Definition L24Classifier.hpp:774
Definition Space.hpp:59
void resolveGbpSecGroup(std::vector< OF_SHARED_PTR< modelgbp::gbp::SecGroup > > &out)
Resolve and retrieve all of the immediate children of type modelgbp::gbp::SecGroup.
Definition Space.hpp:736
boost::optional< OF_SHARED_PTR< modelgbp::gbp::EpGroup > > resolveGbpEpGroup(const std::string &gbpEpGroupName)
Retrieve the child object with the specified naming properties.
Definition Space.hpp:393
void resolveGbpeL24Classifier(std::vector< OF_SHARED_PTR< modelgbp::gbpe::L24Classifier > > &out)
Resolve and retrieve all of the immediate children of type modelgbp::gbpe::L24Classifier.
Definition Space.hpp:256
void resolveGbpRoutingDomain(std::vector< OF_SHARED_PTR< modelgbp::gbp::RoutingDomain > > &out)
Resolve and retrieve all of the immediate children of type modelgbp::gbp::RoutingDomain.
Definition Space.hpp:616
void resolveGbpAllowDenyAction(std::vector< OF_SHARED_PTR< modelgbp::gbp::AllowDenyAction > > &out)
Resolve and retrieve all of the immediate children of type modelgbp::gbp::AllowDenyAction.
Definition Space.hpp:316
Space(opflex::ofcore::OFFramework &framework, const opflex::modb::URI &uri, const OF_SHARED_PTR< const opflex::modb::mointernal::ObjectInstance > &oi)
Construct an instance of Space.
Definition Space.hpp:893
static boost::optional< OF_SHARED_PTR< modelgbp::policy::Space > > resolve(const opflex::modb::URI &uri)
Retrieve an instance of Space from the managed object store using the default framework instance.
Definition Space.hpp:152
boost::optional< OF_SHARED_PTR< modelgbp::gbp::SecGroup > > resolveGbpSecGroup(const std::string &gbpSecGroupName)
Retrieve the child object with the specified naming properties.
Definition Space.hpp:693
OF_SHARED_PTR< modelgbp::gbp::RoutingDomain > addGbpRoutingDomain(const std::string &gbpRoutingDomainName)
Create a new child object with the specified naming properties and make it a child of this object in ...
Definition Space.hpp:591
OF_SHARED_PTR< modelgbp::gbp::Subnets > addGbpSubnets(const std::string &gbpSubnetsName)
Create a new child object with the specified naming properties and make it a child of this object in ...
Definition Space.hpp:651
static void remove(const opflex::modb::URI &uri)
Remove the Space object with the specified URI using the currently-active mutator and the default fra...
Definition Space.hpp:781
boost::optional< OF_SHARED_PTR< modelgbp::gbp::FloodDomain > > resolveGbpFloodDomain(const std::string &gbpFloodDomainName)
Retrieve the child object with the specified naming properties.
Definition Space.hpp:513
OF_SHARED_PTR< modelgbp::gbpe::L24Classifier > addGbpeL24Classifier(const std::string &gbpeL24ClassifierName)
Create a new child object with the specified naming properties and make it a child of this object in ...
Definition Space.hpp:231
OF_SHARED_PTR< modelgbp::gbp::BridgeDomain > addGbpBridgeDomain(const std::string &gbpBridgeDomainName)
Create a new child object with the specified naming properties and make it a child of this object in ...
Definition Space.hpp:471
static void remove(const std::string &policySpaceName)
Remove the Space object with the specified path elements from the managed object store using the defa...
Definition Space.hpp:821
OF_SHARED_PTR< modelgbp::gbp::FloodDomain > addGbpFloodDomain(const std::string &gbpFloodDomainName)
Create a new child object with the specified naming properties and make it a child of this object in ...
Definition Space.hpp:531
static boost::optional< OF_SHARED_PTR< modelgbp::policy::Space > > resolve(opflex::ofcore::OFFramework &framework, const std::string &policySpaceName)
Retrieve an instance of Space from the managed object store by constructing its URI from the path ele...
Definition Space.hpp:174
boost::optional< OF_SHARED_PTR< modelgbp::gbp::BridgeDomain > > resolveGbpBridgeDomain(const std::string &gbpBridgeDomainName)
Retrieve the child object with the specified naming properties.
Definition Space.hpp:453
static boost::optional< OF_SHARED_PTR< modelgbp::policy::Space > > resolve(const std::string &policySpaceName)
Retrieve an instance of Space from the default managed object store by constructing its URI from the ...
Definition Space.hpp:196
static void unregisterListener(opflex::ofcore::OFFramework &framework, opflex::modb::ObjectListener *listener)
Unregister a listener from updates to this class.
Definition Space.hpp:869
OF_SHARED_PTR< modelgbp::gbp::Contract > addGbpContract(const std::string &gbpContractName)
Create a new child object with the specified naming properties and make it a child of this object in ...
Definition Space.hpp:351
static void remove(opflex::ofcore::OFFramework &framework, const std::string &policySpaceName)
Remove the Space object with the specified path elements from the managed object store.
Definition Space.hpp:800
void resolveGbpFloodDomain(std::vector< OF_SHARED_PTR< modelgbp::gbp::FloodDomain > > &out)
Resolve and retrieve all of the immediate children of type modelgbp::gbp::FloodDomain.
Definition Space.hpp:556
OF_SHARED_PTR< modelgbp::gbp::AllowDenyAction > addGbpAllowDenyAction(const std::string &gbpAllowDenyActionName)
Create a new child object with the specified naming properties and make it a child of this object in ...
Definition Space.hpp:291
void remove()
Remove this instance using the currently-active mutator.
Definition Space.hpp:750
static boost::optional< OF_SHARED_PTR< modelgbp::policy::Space > > resolve(opflex::ofcore::OFFramework &framework, const opflex::modb::URI &uri)
Retrieve an instance of Space from the managed object store.
Definition Space.hpp:134
const std::string & getName(const std::string &defaultValue)
Get the value of name if set, otherwise the value of default passed in.
Definition Space.hpp:92
OF_SHARED_PTR< modelgbp::gbp::EpGroup > addGbpEpGroup(const std::string &gbpEpGroupName)
Create a new child object with the specified naming properties and make it a child of this object in ...
Definition Space.hpp:411
boost::optional< const std::string & > getName()
Get the value of name if it has been set.
Definition Space.hpp:80
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 Space.hpp:857
boost::optional< OF_SHARED_PTR< modelgbp::gbp::AllowDenyAction > > resolveGbpAllowDenyAction(const std::string &gbpAllowDenyActionName)
Retrieve the child object with the specified naming properties.
Definition Space.hpp:273
static void remove(opflex::ofcore::OFFramework &framework, const opflex::modb::URI &uri)
Remove the Space object with the specified URI using the currently-active mutator.
Definition Space.hpp:765
boost::optional< OF_SHARED_PTR< modelgbp::gbp::Contract > > resolveGbpContract(const std::string &gbpContractName)
Retrieve the child object with the specified naming properties.
Definition Space.hpp:333
bool isNameSet()
Check whether name has been set.
Definition Space.hpp:71
void resolveGbpSubnets(std::vector< OF_SHARED_PTR< modelgbp::gbp::Subnets > > &out)
Resolve and retrieve all of the immediate children of type modelgbp::gbp::Subnets.
Definition Space.hpp:676
boost::optional< OF_SHARED_PTR< modelgbp::gbp::RoutingDomain > > resolveGbpRoutingDomain(const std::string &gbpRoutingDomainName)
Retrieve the child object with the specified naming properties.
Definition Space.hpp:573
modelgbp::policy::Space & unsetName()
Unset name in the currently-active mutator.
Definition Space.hpp:117
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 Space.hpp:838
void resolveGbpBridgeDomain(std::vector< OF_SHARED_PTR< modelgbp::gbp::BridgeDomain > > &out)
Resolve and retrieve all of the immediate children of type modelgbp::gbp::BridgeDomain.
Definition Space.hpp:496
boost::optional< OF_SHARED_PTR< modelgbp::gbp::Subnets > > resolveGbpSubnets(const std::string &gbpSubnetsName)
Retrieve the child object with the specified naming properties.
Definition Space.hpp:633
void resolveGbpEpGroup(std::vector< OF_SHARED_PTR< modelgbp::gbp::EpGroup > > &out)
Resolve and retrieve all of the immediate children of type modelgbp::gbp::EpGroup.
Definition Space.hpp:436
void resolveGbpContract(std::vector< OF_SHARED_PTR< modelgbp::gbp::Contract > > &out)
Resolve and retrieve all of the immediate children of type modelgbp::gbp::Contract.
Definition Space.hpp:376
static void unregisterListener(opflex::modb::ObjectListener *listener)
Unregister a listener from updates to this class from the default framework instance.
Definition Space.hpp:883
static const opflex::modb::class_id_t CLASS_ID
The unique class ID for Space.
Definition Space.hpp:65
OF_SHARED_PTR< modelgbp::gbp::SecGroup > addGbpSecGroup(const std::string &gbpSecGroupName)
Create a new child object with the specified naming properties and make it a child of this object in ...
Definition Space.hpp:711
modelgbp::policy::Space & setName(const std::string &newValue)
Set name to the specified value in the currently-active mutator.
Definition Space.hpp:105
boost::optional< OF_SHARED_PTR< modelgbp::gbpe::L24Classifier > > resolveGbpeL24Classifier(const std::string &gbpeL24ClassifierName)
Retrieve the child object with the specified naming properties.
Definition Space.hpp:213
SOME COPYRIGHT.
Definition OpcodeEnumT.hpp:12