vom: l2-emulation: Fix sweep function
Change-Id: I6fdb9e7b718c696f7352541f90026cf60f11338f
Signed-off-by: Mohsin Kazmi <sykazmi@cisco.com>
diff --git a/src/vpp-api/vom/gbp_endpoint_cmds.cpp b/src/vpp-api/vom/gbp_endpoint_cmds.cpp
index 5a8247a..4f85b7e 100644
--- a/src/vpp-api/vom/gbp_endpoint_cmds.cpp
+++ b/src/vpp-api/vom/gbp_endpoint_cmds.cpp
@@ -103,7 +103,7 @@
delete_cmd::to_string() const
{
std::ostringstream s;
- s << "gbp-endpoint-create: " << m_hw_item.to_string() << " itf:" << m_itf
+ s << "gbp-endpoint-delete: " << m_hw_item.to_string() << " itf:" << m_itf
<< " ip:" << m_ip_addr.to_string();
return (s.str());
diff --git a/src/vpp-api/vom/l2_emulation.cpp b/src/vpp-api/vom/l2_emulation.cpp
index 75e3bff..4eedd95 100644
--- a/src/vpp-api/vom/l2_emulation.cpp
+++ b/src/vpp-api/vom/l2_emulation.cpp
@@ -62,7 +62,7 @@
{
if (m_emulation && handle_t::INVALID != m_itf->handle()) {
HW::enqueue(
- new l2_emulation_cmds::enable_cmd(m_emulation, m_itf->handle()));
+ new l2_emulation_cmds::disable_cmd(m_emulation, m_itf->handle()));
}
// no need to undo the VTR operation.