vom: l2-emulation: Fix sweep function 24/11224/5
authorMohsin Kazmi <sykazmi@cisco.com>
Wed, 21 Mar 2018 14:55:28 +0000 (15:55 +0100)
committerNeale Ranns <nranns@cisco.com>
Thu, 22 Mar 2018 13:57:17 +0000 (13:57 +0000)
Change-Id: I6fdb9e7b718c696f7352541f90026cf60f11338f
Signed-off-by: Mohsin Kazmi <sykazmi@cisco.com>
src/vpp-api/vom/gbp_endpoint_cmds.cpp
src/vpp-api/vom/l2_emulation.cpp

index 5a8247a..4f85b7e 100644 (file)
@@ -103,7 +103,7 @@ std::string
 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());
index 75e3bff..4eedd95 100644 (file)
@@ -62,7 +62,7 @@ l2_emulation::sweep()
 {
   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.