Skip to content

Commit

Permalink
ospfd: can not delete "segment-routing node-msd" when SR if off
Browse files Browse the repository at this point in the history
This fixes the initial implementation of commit 7743f2f ("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 ba45aa6)
  • Loading branch information
c-po authored and mergify[bot] committed Feb 9, 2024
1 parent b61bd36 commit e8eabb8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions ospfd/ospf_sr.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

/*
Expand Down

0 comments on commit e8eabb8

Please sign in to comment.