]> git.proxmox.com 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, 18 May 2020 12:11:03 +0000 (14:11 +0200)
commitb5b453a2d6af58692bee0e256fe1dffe99824801
tree04b8af403f74f5f14f984c66b21d2c511d83cb02
parentb6ebab34f664ba1cc9479fc1287f127c12077509
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