]> git.puffer.fish Git - matthieu/frr.git/commit
ospfd: Default route becomes stale route in nbrs even after flush from originator.
authorrgirada <rgirada@vmware.com>
Mon, 21 Mar 2022 09:48:46 +0000 (02:48 -0700)
committerrgirada <rgirada@vmware.com>
Mon, 21 Mar 2022 09:55:29 +0000 (02:55 -0700)
commitab31275cf6243ae713e8e94df28fc2b8d887798e
tree6a8b264e5e092f95e663526d4f8fda8557cf374b
parent25d7130380d9ce6146fb14c58da330116ef9da8f
ospfd: Default route becomes stale route in nbrs even after flush from originator.

Description:
Default route is not getting flushed from neighbours though originator
        triggered flush and deleted LSA from its database. It become as stale
        LSA in  neighbours databse forever. This could seen in the following
        sequence of configurations with less than a second interval b/w configs.
        And this could happen only when originator shouldnt have default route
        in its rib so it originates default route only when configure with 'always'
        option.

        step-1:default-information originate always
        step-2:no default-information originate always
        step-3:default-information originate

        In step-1, default route will be originated to AS.
        In step-2, default route will be flushed to AS, but neighbours will be
                   discarding this update due to minlsainterval condition.
                   And it is expected that DUT need to keep send this update
                   until it receives the ack from neighbours by adding each
                   neighbour's retransmission list.
        In Step-3: It is deleting the lsas from nbr's retransmission list
                   by assuming it initiated the flush. This is cuasing to not
                   send the lsa update anymore to neighbours which makes
                   stale lsa in nbrs forever.

Fix:
        Allowed to delete the lsa from retransmission list only when lsa is
        not in maxage during flushing procedure.

Signed-off-by: Rajesh Girada <rgirada@vmware.com>
ospfd/ospf_lsa.c