From: Mohsin Kazmi Date: Tue, 27 Feb 2018 13:05:15 +0000 (+0100) Subject: VOM: interface: Fix the vhost user interface X-Git-Tag: v18.04-rc1~244 X-Git-Url: https://gerrit.fd.io/r/gitweb?a=commitdiff_plain;h=3a758b0af83e1f8c791d899ee6dfcea813a09c5b;p=vpp.git VOM: interface: Fix the vhost user interface Change-Id: I38904dafb4110322ec0138f7a5b3a65c96426b2b Signed-off-by: Mohsin Kazmi --- diff --git a/src/vpp-api/vom/interface.hpp b/src/vpp-api/vom/interface.hpp index 5d2951007a2..b0aeb739fdb 100644 --- a/src/vpp-api/vom/interface.hpp +++ b/src/vpp-api/vom/interface.hpp @@ -354,7 +354,7 @@ public: void succeeded() {} /** - * add the created interface to the DB + * remove the deleted interface from the DB */ void remove_interface() { interface::remove(this->item()); } diff --git a/src/vpp-api/vom/interface_cmds.cpp b/src/vpp-api/vom/interface_cmds.cpp index df3415408d9..b04798aba83 100644 --- a/src/vpp-api/vom/interface_cmds.cpp +++ b/src/vpp-api/vom/interface_cmds.cpp @@ -161,6 +161,10 @@ vhost_create_cmd::issue(connection& con) m_hw_item = wait(); + if (m_hw_item.rc() == rc_t::OK) { + insert_interface(); + } + return rc_t::OK; }