summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/test_gbp.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/test/test_gbp.py b/test/test_gbp.py
index 05a4b4df513..cf9ad251d4b 100644
--- 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
+ while (len(self.allowed_ethertypes) < 16):
+ self.allowed_ethertypes.append(0)
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.allowed_ethertypes)
def __str__(self):
return self.object_id()