diff options
author | Sergio Gonzalez Monroy <sgmonroy@gmail.com> | 2021-07-14 15:01:47 +0200 |
---|---|---|
committer | Matthew Smith <mgsmith@netgate.com> | 2021-07-15 12:58:08 +0000 |
commit | 05698730e42346c54b7405c6c1a498a0467261ab (patch) | |
tree | a3a736f2a013faaa5b9a3d7abfe886f87478fa69 | |
parent | af7fb04b81c765c3e3f621c6b23fc3390310715b (diff) |
linux-cp: clear all db entries when deleting a pair
Type: fix
Change-Id: I5677cbb183b10c974a3a2e569d1a7a525a7eb45d
Signed-off-by: Sergio Gonzalez Monroy <sgmonroy@gmail.com>
-rw-r--r-- | src/plugins/linux-cp/lcp_interface.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/plugins/linux-cp/lcp_interface.c b/src/plugins/linux-cp/lcp_interface.c index 5c4cd494232..3fc91179cd1 100644 --- a/src/plugins/linux-cp/lcp_interface.c +++ b/src/plugins/linux-cp/lcp_interface.c @@ -438,7 +438,8 @@ lcp_itf_pair_del (u32 phy_sw_if_index) } lip_db_by_phy[phy_sw_if_index] = INDEX_INVALID; - lip_db_by_phy[lip->lip_host_sw_if_index] = INDEX_INVALID; + lip_db_by_host[lip->lip_host_sw_if_index] = INDEX_INVALID; + hash_unset (lip_db_by_vif, lip->lip_vif_index); vec_free (lip->lip_host_name); vec_free (lip->lip_namespace); |