From 3a758b0af83e1f8c791d899ee6dfcea813a09c5b Mon Sep 17 00:00:00 2001 From: Mohsin Kazmi Date: Tue, 27 Feb 2018 14:05:15 +0100 Subject: VOM: interface: Fix the vhost user interface Change-Id: I38904dafb4110322ec0138f7a5b3a65c96426b2b Signed-off-by: Mohsin Kazmi --- src/vpp-api/vom/interface.hpp | 2 +- src/vpp-api/vom/interface_cmds.cpp | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) (limited to 'src') 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; } -- cgit 1.2.3-korg