diff options
author | Mohsin Kazmi <sykazmi@cisco.com> | 2018-03-22 16:07:05 +0100 |
---|---|---|
committer | Damjan Marion <dmarion.lists@gmail.com> | 2018-03-22 22:36:42 +0000 |
commit | c6a716b7c2768f5d1edcb2fd4d45856054ef33bb (patch) | |
tree | 84ada16a1e0e20587b495d6ab9e95d51baa5ed11 /src/vpp-api | |
parent | 6e3c682b188cc0d1a80c165c4b2773574a163bb1 (diff) |
vom: itf: make vhost_user as socket slave
Change-Id: I57b2ec35d9629fb5336c1ccfa4c6c849df118f7b
Signed-off-by: Mohsin Kazmi <sykazmi@cisco.com>
Diffstat (limited to 'src/vpp-api')
-rw-r--r-- | src/vpp-api/vom/interface_cmds.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/vpp-api/vom/interface_cmds.cpp b/src/vpp-api/vom/interface_cmds.cpp index b04798aba83..084d6d5cb08 100644 --- a/src/vpp-api/vom/interface_cmds.cpp +++ b/src/vpp-api/vom/interface_cmds.cpp @@ -153,7 +153,7 @@ vhost_create_cmd::issue(connection& con) memcpy(payload.tag, m_tag.c_str(), std::min(m_tag.length(), sizeof(payload.tag))); - payload.is_server = 1; + payload.is_server = 0; payload.use_custom_mac = 0; payload.renumber = 0; @@ -281,6 +281,7 @@ vhost_delete_cmd::issue(connection& con) VAPI_CALL(req.execute()); wait(); + remove_interface(); return rc_t::OK; } |