aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/vpp-api/vom/interface_cmds.cpp3
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;
}