diff options
author | Ole Troan <ot@cisco.com> | 2019-04-10 09:44:23 +0200 |
---|---|---|
committer | Dave Wallace <dwallacelf@gmail.com> | 2019-04-10 13:06:45 +0000 |
commit | 2e1c8967faf4e9f7b45471df02e4e5b07fbb520a (patch) | |
tree | 172579d8d04927851d1781262bd2483fa9bf8643 /test/test_vhost.py | |
parent | 13464f323a8bbd530bd85256de1c033781e098a7 (diff) |
API: Fix shared memory only action handlers.
Some API action handlers called vl_msg_ai_send_shmem()
directly. That breaks Unix domain socket API transport.
A couple (bond / vhost) also tried to send a sw_interface_event
directly, but did not send the message to all that had
registred interest. That scheme never worked correctly.
Refactored and improved the interface event code.
Change-Id: Idb90edfd8703c6ae593b36b4eeb4d3ed7da5c808
Signed-off-by: Ole Troan <ot@cisco.com>
Diffstat (limited to 'test/test_vhost.py')
-rw-r--r-- | test/test_vhost.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/test_vhost.py b/test/test_vhost.py index 15eb0701f91..c657da7ba0c 100644 --- a/test/test_vhost.py +++ b/test/test_vhost.py @@ -92,8 +92,8 @@ class TesVhostInterface(VppTestCase): vhost_if.add_vpp_config() self.sleep(0.1) events = self.vapi.collect_events() - # creating interface doesn't currently create events - self.assert_equal(len(events), 0, "number of events") + # creating interface does now create events + self.assert_equal(len(events), 1, "number of events") vhost_if.admin_up() vhost_if.assert_interface_state(1, 0, expect_event=True) |