]> git.puffer.fish Git - matthieu/frr.git/commit
zebra: bridge layer2 information records ns_id where bridge is
authorPhilippe Guibert <philippe.guibert@6wind.com>
Thu, 3 Oct 2019 15:11:37 +0000 (17:11 +0200)
committerAnuradha Karuppiah <anuradhak@cumulusnetworks.com>
Tue, 18 Aug 2020 16:25:06 +0000 (09:25 -0700)
commita6e0edf28046a091344fad654b3c37aa07d403c0
tree1c03c6957a90f0676ac0b1ca1f0279fcab9b196e
parentb1cc23b2cdaf70b279dfe53aa8ded6e2e6d3b1fd
zebra: bridge layer2 information records ns_id where bridge is

when working with vrf netns backend, two bridges interfaces may have the
same bridge interface index, but not the same namespace. because in vrf
netns backend mode, a bridge slave always belong to the same network
namespace, then a check with the namespace id and the ns id of the
bridge interface permits to resolve correctly the interface pointer.
The problem could occur if a same index of two bridge interfaces can be
found on two different namespaces.

Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com>
zebra/if_netlink.c
zebra/zebra_l2.c
zebra/zebra_l2.h