summaryrefslogtreecommitdiffstats
path: root/test/test_l2_fib.py
diff options
context:
space:
mode:
authorOle Troan <ot@cisco.com>2019-03-04 23:55:43 +0100
committerOle Troan <ot@cisco.com>2019-03-04 23:55:43 +0100
commite1ade684eb5a7e5743abfda47488165452cc5b64 (patch)
tree63b4e3ccc361904b42e0020bfc16b4d110cd0095 /test/test_l2_fib.py
parentfd06084a9e86c5f67c4b1dc37e78a95a9bacf2a4 (diff)
test framework: Fix wrapper functions to match API message names.
In preparation to remove the wrappers in vpp_papi_provider.py, ensure names used in tests match the actual API message names. Change-Id: I230ca4eb75aa727ff68d702e085a2edbbc6b6d19 Signed-off-by: Ole Troan <ot@cisco.com>
Diffstat (limited to 'test/test_l2_fib.py')
-rw-r--r--test/test_l2_fib.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/test/test_l2_fib.py b/test/test_l2_fib.py
index 1cee58982e5..ac70c8a726d 100644
--- a/test/test_l2_fib.py
+++ b/test/test_l2_fib.py
@@ -482,7 +482,7 @@ class TestL2fib(VppTestCase):
bd1 = 1
hosts = self.create_hosts(10, subnet=39)
- self.vapi.want_macs_learn_events()
+ self.vapi.want_l2_macs_events()
self.learn_hosts(bd1, hosts)
self.sleep(1)
@@ -493,7 +493,7 @@ class TestL2fib(VppTestCase):
if e.mac[i].action == MAC_EVENT_ACTION_ADD}
macs = {h.bin_mac for swif in self.bd_ifs(bd1)
for h in hosts[self.pg_interfaces[swif].sw_if_index]}
- self.vapi.want_macs_learn_events(enable_disable=0)
+ self.vapi.want_l2_macs_events(enable_disable=0)
self.assertEqual(len(learned_macs ^ macs), 0)
def test_l2_fib_macs_learn_max(self):
@@ -503,13 +503,13 @@ class TestL2fib(VppTestCase):
hosts = self.create_hosts(10, subnet=40)
ev_macs = 1
- self.vapi.want_macs_learn_events(max_macs_in_event=ev_macs)
+ self.vapi.want_l2_macs_events(max_macs_in_event=ev_macs)
self.learn_hosts(bd1, hosts)
self.sleep(1)
self.logger.info(self.vapi.ppcli("show l2fib"))
evs = self.vapi.collect_events()
- self.vapi.want_macs_learn_events(enable_disable=0)
+ self.vapi.want_l2_macs_events(enable_disable=0)
self.assertGreater(len(evs), 0)
learned_macs = {