summaryrefslogtreecommitdiffstats
path: root/test/vpp_papi_provider.py
diff options
context:
space:
mode:
authorJuraj Sloboda <jsloboda@cisco.com>2018-10-04 15:15:16 +0200
committerJuraj Sloboda <jsloboda@cisco.com>2018-10-05 10:13:18 +0200
commitb3f90503313949e23528495ca12a525be7c5ad9f (patch)
treecf3030a0a638509dd67037fe9310a7700cb11001 /test/vpp_papi_provider.py
parentd63abff00f2aa234242a76aa0a4b5a38dfe1aee2 (diff)
vhost_user: Add test for interface states and events
Change-Id: I2c330945bb0b07f649f574a055bfbea455e5d0b3 Signed-off-by: Juraj Sloboda <jsloboda@cisco.com>
Diffstat (limited to 'test/vpp_papi_provider.py')
-rw-r--r--test/vpp_papi_provider.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/vpp_papi_provider.py b/test/vpp_papi_provider.py
index 57592e854ae..1f922a07b2b 100644
--- a/test/vpp_papi_provider.py
+++ b/test/vpp_papi_provider.py
@@ -514,6 +514,11 @@ class VppPapiProvider(object):
'enable': enable,
'install_default_routes': install_default_routes})
+ def want_interface_events(self, enable_disable=1):
+ return self.api(self.papi.want_interface_events,
+ {'enable_disable': enable_disable,
+ 'pid': os.getpid(), })
+
def want_macs_learn_events(self, enable_disable=1, scan_delay=0,
max_macs_in_event=0, learn_limit=0):
return self.api(self.papi.want_l2_macs_events,