]> git.puffer.fish Git - matthieu/frr.git/commitdiff
ospfd: can not delete "segment-routing node-msd" when SR if off
authorChristian Breunig <christian@breunig.cc>
Thu, 8 Feb 2024 20:53:35 +0000 (21:53 +0100)
committerChristian Breunig <christian@breunig.cc>
Thu, 8 Feb 2024 20:56:08 +0000 (21:56 +0100)
This fixes the initial implementation of commit 7743f2f8c00 ("OSPFd: Update
Segment Routing PR following review") where it wsa not possible to remove
the "segment-routing node-msd" CLI nodes via vtysh once segment-routing got
disabled.

Closes #14910

Signed-off-by: Christian Breunig <christian@breunig.cc>
ospfd/ospf_sr.c

index 467cb0504d9590adf8a964ebee3cec5bb7ab8f7c..e26fe6f53a12087f65766adbe4610adba90424ad 100644 (file)
@@ -580,6 +580,7 @@ static void ospf_sr_stop(void)
        hash_clean(OspfSR.neighbors, (void *)sr_node_del);
        OspfSR.self = NULL;
        OspfSR.status = SR_OFF;
+       OspfSR.msd = 0;
 }
 
 /*