]> 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)
committerAnuradha Karuppiah <anuradhak@cumulusnetworks.com>
Tue, 18 Aug 2020 16:25:06 +0000 (09:25 -0700)
commit9771da714e63ba050f13a3f1fa2cdee464e97da1
treeffe061c0b75d37a4ecba34f7825406fe88b01dc2
parentd0738ba2bbdf764ba484f17ecf08f25b11403409
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