summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/vpp-api/vom/interface.hpp2
-rw-r--r--src/vpp-api/vom/interface_cmds.cpp4
2 files changed, 5 insertions, 1 deletions
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;
}