X-Git-Url: https://gerrit.fd.io/r/gitweb?a=blobdiff_plain;f=extras%2Fvom%2Fvom%2Fgbp_contract.hpp;h=53f8f3659ecac7c30d584d6a9f302fc20e77309f;hb=33b81da54acf1236cddf0716005c340f3402ff6d;hp=7a0696de7b3df7e038d4a970c7faab668793560b;hpb=142eb8520041ece53d8d1e406bce0a6143a6e8d6;p=vpp.git diff --git a/extras/vom/vom/gbp_contract.hpp b/extras/vom/vom/gbp_contract.hpp index 7a0696de7b3..53f8f3659ec 100644 --- a/extras/vom/vom/gbp_contract.hpp +++ b/extras/vom/vom/gbp_contract.hpp @@ -18,6 +18,7 @@ #include "vom/acl_list.hpp" #include "vom/gbp_endpoint.hpp" +#include "vom/gbp_rule.hpp" #include "vom/interface.hpp" #include "vom/singular_db.hpp" #include "vom/types.hpp" @@ -30,6 +31,11 @@ namespace VOM { class gbp_contract : public object_base { public: + /** + * set of gbp rules + */ + typedef std::set gbp_rules_t; + /** * The key for a contract is the pari of EPG-IDs */ @@ -87,6 +93,11 @@ public: */ std::string to_string() const; + /** + * Set gbp_rules in case of Redirect Contract + */ + void set_gbp_rules(const gbp_rules_t& gbp_rules); + private: /** * Class definition for listeners to OM events @@ -168,6 +179,11 @@ private: */ std::shared_ptr m_acl; + /** + * The gbp rules applied to traffic between the gourps + */ + gbp_rules_t m_gbp_rules; + /** * A map of all bridge_domains */