]> git.puffer.fish Git - matthieu/frr.git/commit
zebra: Move where zebra marks a nhg as uninstalled in fib
authorDonald Sharp <sharpd@nvidia.com>
Wed, 15 Jun 2022 20:27:07 +0000 (16:27 -0400)
committerDonald Sharp <sharpd@nvidia.com>
Thu, 16 Jun 2022 18:47:19 +0000 (14:47 -0400)
commit382858d01500cf8f2289db17c7b07639b1714848
treebae9326189b8e497b901cd01c77b6afed99b0674
parent5772319ef156deb6afbee8683bb01c1dc352c9bb
zebra: Move where zebra marks a nhg as uninstalled in fib

Currently the code is marking the nhg as uninstalled but not
causing that to flood up to the dependent nhgs:

nhg 3 is a group of 1/2
   1 -> interface A
   2 -> interface B

Suppose A goes down, old code would mark nhg 1 as !VALID and !INSTALLED.
Suppose B then goes down, old code would mark nhg 2 as !VALID and !INSTALLED
But would not mark nhg 3 as !VALID and !INSTALLED (sort of assuming that
it would just be cleaned up by NHG refcounts ).  I would prefer that
the code is pedantic about nhg 3 actually being removed from the system.

This code moves the setting of !INSTALLED into zebra_nhg.c where it
really belongs.

Signed-off-by: Donald Sharp <sharpd@nvidia.com>
zebra/interface.c
zebra/zebra_nhg.c