diff options
Diffstat (limited to 'ospfd/ospf_sr.c')
-rw-r--r-- | ospfd/ospf_sr.c | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/ospfd/ospf_sr.c b/ospfd/ospf_sr.c index d906a4ce5..5586f24f6 100644 --- a/ospfd/ospf_sr.c +++ b/ospfd/ospf_sr.c @@ -352,7 +352,6 @@ int ospf_sr_init(void) * Segment Routing termination function * * @param - nothing - * * @return - nothing */ void ospf_sr_term(void) @@ -370,6 +369,21 @@ void ospf_sr_term(void) route_table_finish(OspfSR.prefix); OspfSR.enabled = false; + OspfSR.self = NULL; +} + +/* + * Segment Routing finish function + * + * @param - nothing + * @return - nothing + */ +void ospf_sr_finish(void) +{ + /* Stop Segment Routing */ + ospf_sr_stop(); + + OspfSR.enabled = false; } /* |