]> 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, 18 May 2020 12:11:03 +0000 (14:11 +0200)
commit7c990878f20efff335c1211deda3ec50071ae2b5
tree8da0ef256485f287f197b2170e8c7afa58091f40
parentfc3141393ad95651d31fccd144b5c029d00e5f3a
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