]> git.proxmox.com Git - mirror_frr.git/commit
ospf6d: Don't remove summary route if it is a range
authorXiaodong Xu <stid.smth@gmail.com>
Sat, 20 Aug 2022 00:25:41 +0000 (17:25 -0700)
committerXiaodong Xu <stid.smth@gmail.com>
Sat, 20 Aug 2022 06:26:06 +0000 (23:26 -0700)
commit4ef96a701527559da0650e430f738d77bd5ab503
tree0c7002503fe789ba201a95f94c2aed8545e1e94c
parent7205c3bb19139c40dff6f0c3082e82c57ef88645
ospf6d: Don't remove summary route if it is a range

Fix issue #11839.

When the user defines a range in an area other than the backbone area, the
summary route will be announced to the backbone area as an inter-area LSA.
However, if the prefix defined in the range is the same prefix as a connected
route in that area, the LSA won't be announced to the backbone area.

This is because when ospf6d is originating the summary route for the
intra-area route, it finds the range configured by the user and tries to
suppress the route by deleting the existing summary route, which happens to be
the one created by the range.

Although the range definition is not necessary in this case, it should not
fail this use case. So let's just keep the summary route there if it is
created from the user defined range.

Signed-off-by: Xiaodong Xu <stid.smth@gmail.com>
ospf6d/ospf6_abr.c