]> git.proxmox.com Git - mirror_frr.git/commit - zebra/rt_netlink.c
zebra: retrieve zns context from zvrf when netlink discovery
authorPhilippe Guibert <philippe.guibert@6wind.com>
Tue, 13 Feb 2018 09:48:48 +0000 (10:48 +0100)
committerPhilippe Guibert <philippe.guibert@6wind.com>
Tue, 27 Feb 2018 10:11:24 +0000 (11:11 +0100)
commit009f8ad5f3a99ae813d8a6739a1137443c83e345
tree9d0f0484baf677604b4d55ab4ec694aefec31fed
parent281da0a94dcd14d4f628026ffd628c08df5104f1
zebra: retrieve zns context from zvrf when netlink discovery

So as to get the correct NETNS where some discovery must be done and
populated, the zns pointer is directly retrieved from zvrf, instead of
checking that the VRF is a backend NETNS or not.
In the case where the interfaces are discovered before the VRF is enabled
( VRF-lite populate), then the default NS is retrieved.

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