From fa0ac2c5668cb8f387a8e16dcf8d2d7154a09fe2 Mon Sep 17 00:00:00 2001 From: Neale Ranns Date: Tue, 12 Mar 2019 04:34:53 -0700 Subject: GBP: contracts API fixed length of allowed ethertypes VAPI does not handle two VLAs in one struct. Change-Id: I259c998bef4398ead2bbb9e788350d50c2f05694 Signed-off-by: Neale Ranns --- test/test_gbp.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'test/test_gbp.py') 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() -- cgit 1.2.3-korg