Code Review
/
vpp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
GBP: use sclass in the DP for policy
[vpp.git]
/
extras
/
vom
/
vom
/
gbp_contract.hpp
diff --git
a/extras/vom/vom/gbp_contract.hpp
b/extras/vom/vom/gbp_contract.hpp
index
2f1c3c5
..
7775638
100644
(file)
--- a/
extras/vom/vom/gbp_contract.hpp
+++ b/
extras/vom/vom/gbp_contract.hpp
@@
-39,7
+39,7
@@
public:
/**
* The key for a contract is the pari of EPG-IDs
*/
/**
* The key for a contract is the pari of EPG-IDs
*/
- typedef std::pair<
epg_id_t, epg_id
_t> key_t;
+ typedef std::pair<
sclass_t, sclass
_t> key_t;
/**
* A set of allowed ethertypes
/**
* A set of allowed ethertypes
@@
-49,8
+49,8
@@
public:
/**
* Construct a GBP contract
*/
/**
* Construct a GBP contract
*/
- gbp_contract(
epg_id_t src_epg_id
,
-
epg_id_t dst_epg_id
,
+ gbp_contract(
sclass_t sclass
,
+
sclass_t dclass
,
const ACL::l3_list& acl,
const gbp_rules_t& gpb_rules,
const ethertype_set_t& allowed_ethertypes);
const ACL::l3_list& acl,
const gbp_rules_t& gpb_rules,
const ethertype_set_t& allowed_ethertypes);
@@
-169,12
+169,12
@@
private:
/**
* The source EPG ID
*/
/**
* The source EPG ID
*/
-
epg_id_t m_src_epg_id
;
+
sclass_t m_sclass
;
/**
* The destination EPG ID
*/
/**
* The destination EPG ID
*/
-
epg_id_t m_dst_epg_id
;
+
sclass_t m_dclass
;
/**
* The ACL applied to traffic between the gourps
/**
* The ACL applied to traffic between the gourps