]> git.proxmox.com Git - mirror_frr.git/commit - zebra/interface.c
zebra: resolve link dependencies post nldump
authorAnuradha Karuppiah <anuradhak@cumulusnetworks.com>
Wed, 12 Sep 2018 18:33:51 +0000 (11:33 -0700)
committerDonald Sharp <sharpd@cumulusnetworks.com>
Tue, 18 Sep 2018 14:41:53 +0000 (10:41 -0400)
commit520ebf72b27c2462ce8b0dc5a1d4cb83956df69c
treeaceba5b51cb3f7510efe328817eb419237bd7244
parent66e3798747385bbcd6cfbd647e1945718c565dd3
zebra: resolve link dependencies post nldump

Netdevices are not sorted in any fashion by the kernel during the initial
interface nldump. So you can get an upper device (such as an SVI) before
its corresponding lower device (bridge).

To fix this problem we skip resolving link dependencies during handling of
nldump notifications. Resolving instead at the end (when all the devices
are present)

Signed-off-by: Anuradha Karuppiah <anuradhak@cumulusnetworks.com>
Ticket: CM-22388, CM-21796
Reviewed By: CCR-7845
Testing Done:
1. verified on a setup with missing linkages
2. automation - evpn-min
zebra/if_netlink.c
zebra/interface.c
zebra/interface.h