diff options
author | Neale Ranns <neale.ranns@cisco.com> | 2018-05-31 21:23:37 -0700 |
---|---|---|
committer | Neale Ranns <nranns@cisco.com> | 2018-06-03 02:21:26 +0000 |
commit | e8d7ff5f876c3950caf1bacf603d79b9ada8aef2 (patch) | |
tree | 10b614cc85422e6e6f111cd2b67504969444dc70 | |
parent | ba614d63a8dabaf95f012323c5f9bfba4a23f5cf (diff) |
Interface Tag: memset field in VOM, clear the tag in VPP on interface delete
Change-Id: Id97de732b5952d5d86202e7749c9e81cf8dbed87
Signed-off-by: Neale Ranns <neale.ranns@cisco.com>
-rw-r--r-- | extras/vom/vom/interface_cmds.cpp | 1 | ||||
-rw-r--r-- | src/vnet/interface.c | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/extras/vom/vom/interface_cmds.cpp b/extras/vom/vom/interface_cmds.cpp index 49a24c1301b..f7ddd7e34cf 100644 --- a/extras/vom/vom/interface_cmds.cpp +++ b/extras/vom/vom/interface_cmds.cpp @@ -723,6 +723,7 @@ set_tag::issue(connection& con) auto& payload = req.get_request().get_payload(); payload.is_add = 1; payload.sw_if_index = m_hw_item.data().value(); + memset(payload.tag, 0, sizeof(payload.tag)); memcpy(payload.tag, m_name.c_str(), m_name.length()); VAPI_CALL(req.execute()); diff --git a/src/vnet/interface.c b/src/vnet/interface.c index d85d864839e..9300074927d 100644 --- a/src/vnet/interface.c +++ b/src/vnet/interface.c @@ -670,6 +670,7 @@ vnet_delete_sw_interface (vnet_main_t * vnm, u32 sw_if_index) if (config->xconnect || config->bridge) set_int_l2_mode (vm, vnm, MODE_L3, sw_if_index, 0, 0, 0, 0); } + vnet_clear_sw_interface_tag (vnm, sw_if_index); /* Bring down interface in case it is up. */ if (sw->flags != 0) |