]> git.puffer.fish Git - mirror/frr.git/commit
lib: fix interface nb stale pointers 8426/head
authorIgor Ryzhov <iryzhov@nfware.com>
Thu, 8 Apr 2021 12:43:07 +0000 (15:43 +0300)
committerIgor Ryzhov <iryzhov@nfware.com>
Mon, 12 Apr 2021 07:56:04 +0000 (10:56 +0300)
commitaf736200e1c0e1e6da88bca6a57027db70a92c68
tree17fdf8e55d771d2fbd9a03782eea0974447ece27
parent9d78be6aac062d8b16bc13479f0e1bf40beab863
lib: fix interface nb stale pointers

The first change in this commit is the processing of the VRF termination.
When we terminate the VRF, we should not delete the underlying interfaces,
because there may be pointers to them in the northbound configuration. We
should move them to the default VRF instead.

Because of the first change, the VRF interface itself is also not deleted
when deleting the VRF. It should be handled in netlink_link_change. This
is done by the second change.

Signed-off-by: Igor Ryzhov <iryzhov@nfware.com>
lib/if.c
zebra/if_netlink.c