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: contracts API fixed length of allowed ethertypes
[vpp.git]
/
test
/
test_gbp.py
diff --git
a/test/test_gbp.py
b/test/test_gbp.py
index
05a4b4d
..
cf9ad25
100644
(file)
--- a/
test/test_gbp.py
+++ b/
test/test_gbp.py
@@
-461,6
+461,8
@@
class VppGbpContract(VppObject):
self.dst_epg = dst_epg
self.rules = rules
self.allowed_ethertypes = allowed_ethertypes
self.dst_epg = dst_epg
self.rules = rules
self.allowed_ethertypes = allowed_ethertypes
+ while (len(self.allowed_ethertypes) < 16):
+ self.allowed_ethertypes.append(0)
def add_vpp_config(self):
rules = []
def add_vpp_config(self):
rules = []
@@
-481,7
+483,8
@@
class VppGbpContract(VppObject):
self.src_epg.sclass,
self.dst_epg.sclass,
self.acl_index,
self.src_epg.sclass,
self.dst_epg.sclass,
self.acl_index,
- [], [])
+ [],
+ self.allowed_ethertypes)
def __str__(self):
return self.object_id()
def __str__(self):
return self.object_id()