]> git.puffer.fish Git - mirror/frr.git/commit
zebra: map vxlan interface to bridge interface with correct ns id
authorPhilippe Guibert <philippe.guibert@6wind.com>
Tue, 1 Oct 2019 09:07:13 +0000 (11:07 +0200)
committerPhilippe Guibert <philippe.guibert@6wind.com>
Mon, 21 Sep 2020 07:17:10 +0000 (09:17 +0200)
commitf8360222d4af143839cc0d312c15b9eee528f843
treeac40a6ea3b06329624b2ac29a6e3c946405884dd
parent590c9954d4e0c9aa1292b85315f159f30588e11c
zebra: map vxlan interface to bridge interface with correct ns id

an incoming bridge index has been found, that is linked with vxlan
interface, and the search for that bridge interface is done. In
vrf-lite, the search is done across the same default namespace, because
bridge and vxlan may not be in the same vrf. But this behaviour is wrong
when using vrf netns backend, as the bridge and the vxlan have to be in
the same vrf ( hence in the same network namespace). To comply with
that, use the netnamespace of the vxlan interface. Like that, the
appropriate nsid is passed as parameter, and consequently, the search is
correct, and the mac address passed to BGP will be ok too.

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