diff options
| author | Christian Breunig <christian@breunig.cc> | 2024-02-08 21:53:35 +0100 | 
|---|---|---|
| committer | Mergify <37929162+mergify[bot]@users.noreply.github.com> | 2024-02-09 10:35:45 +0000 | 
| commit | e8eabb8d22ebcb9aa7cd91853f81fdacea3e5887 (patch) | |
| tree | 622f5bfb06c248bd8dea57b5e2a8f9f5ee05597e /ospfd/ospf_sr.c | |
| parent | b61bd36e770e2e996d06990b631e17bb3345de69 (diff) | |
ospfd: can not delete "segment-routing node-msd" when SR if off
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>
(cherry picked from commit ba45aa62e7bcc4ea7b02773614f03efb6f7c595b)
Diffstat (limited to 'ospfd/ospf_sr.c')
| -rw-r--r-- | ospfd/ospf_sr.c | 1 | 
1 files changed, 1 insertions, 0 deletions
diff --git a/ospfd/ospf_sr.c b/ospfd/ospf_sr.c index 467cb0504d..e26fe6f53a 100644 --- a/ospfd/ospf_sr.c +++ b/ospfd/ospf_sr.c @@ -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;  }  /*  | 
