linux-cp: populate mapping vif-sw_if_index only for default-ns 79/40379/3
authorDenys Haryachyy <[email protected]>
Fri, 17 Nov 2023 09:58:41 +0000 (11:58 +0200)
committerMatthew Smith <[email protected]>
Tue, 25 Jun 2024 18:49:05 +0000 (18:49 +0000)
commit1b794cf1b639534b58ea7eab4baadff11bd3d19e
tree8a894753574150cb5835855004a475c7229460c0
parent3eb91a5d62d4cc80f8390e25306397f86c1ae7df
linux-cp: populate mapping vif-sw_if_index only for default-ns

When custom netns is used we don't need to populate the mapping
ifindex->sw_if_index otherwise netlink events in default-ns can apply settings
to wrong interfaces. Most of the lcp functions however wasn't working for such
interfaces and neither it was fixed by this patch.

Type: fix
Change-Id: I74a8a4e332753f9a40fc291d489dfd7fc51cbef3
Signed-off-by: Stanislav Zaikin <[email protected]>
src/plugins/linux-cp/lcp_interface.c