]> git.puffer.fish Git - matthieu/frr.git/commit
zebra: fix imported static routes deletion
authorPhilippe Guibert <philippe.guibert@6wind.com>
Thu, 6 Jul 2023 20:40:50 +0000 (22:40 +0200)
committerPhilippe Guibert <philippe.guibert@6wind.com>
Wed, 12 Jul 2023 12:06:00 +0000 (14:06 +0200)
commit492b93bea0f1c366ad7ba0b85557501f03c1c304
tree55f7374e7a4bcbb0f617ccedbb9a2b3839a20fed
parent23cd58e8573afc6d28a2a75cfc440ddc09ca6ed0
zebra: fix imported static routes deletion

When unconfiguring 'no import <table>', a static route imported
from a routing table number is never deleted.

When importing a route from a given table, a default distance of
15 is applied. At the time of deletion, when trying to compare
the original route with the new one, the distance does not match,
because the static route applies a default distance of 1.

If the imported route has the distance set, unset the distance
flag to avoid comparing it.

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