]> git.puffer.fish Git - mirror/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)
committerPhilippe Guibert <philippe.guibert@6wind.com>
Mon, 21 Sep 2020 07:17:10 +0000 (09:17 +0200)
commit88a7aaeacfb93caf90c9cb7a57ab1951afbf624f
treef761a7faf58ace033c1ea6346354b7a25bc0b962
parentb9f03b58c4f591e5d1f4c8d587e81f2309a02bb8
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