diff options
Diffstat (limited to 'test/vpp_ip_route.py')
-rw-r--r-- | test/vpp_ip_route.py | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/test/vpp_ip_route.py b/test/vpp_ip_route.py index cd70b38101a..4675db5c5a6 100644 --- a/test/vpp_ip_route.py +++ b/test/vpp_ip_route.py @@ -188,16 +188,19 @@ class VppIpTable(VppObject): def __init__(self, test, table_id, - is_ip6=0): + is_ip6=0, + register=True): self._test = test self.table_id = table_id self.is_ip6 = is_ip6 + self.register = register def add_vpp_config(self): self._test.vapi.ip_table_add_del(is_add=1, table={'is_ip6': self.is_ip6, 'table_id': self.table_id}) - self._test.registry.register(self, self._test.logger) + if self.register: + self._test.registry.register(self, self._test.logger) return self def remove_vpp_config(self): |