diff options
| author | Christian Breunig <christian@breunig.cc> | 2024-07-13 08:43:36 +0200 | 
|---|---|---|
| committer | Mergify <37929162+mergify[bot]@users.noreply.github.com> | 2024-07-23 14:52:53 +0000 | 
| commit | f34dfab8051d43b65140b837f17e3687dbd75216 (patch) | |
| tree | 274ab6e98bcb0c3d4b40c72cdd6a8414c520046c /ospfd | |
| parent | 743eecd28877a93167132982a95dede0cf1b7ef7 (diff) | |
ospfd: fix internal ldp-sync state flags when feature is disabled
When enabling "mpls ldp-sync" under "router ospf" ospfd configures
SET_FLAG(ldp_sync_info->flags, LDP_SYNC_FLAG_IF_CONFIG) so internally knowing
that the ldp-sync feature is enabled. However the flag is not cleared when
turning of the feature using "nompls ldp-sync"!
https://github.com/FRRouting/frr/issues/16375
Signed-off-by: Christian Breunig <christian@breunig.cc>
(cherry picked from commit 5a70378a47f541b0354fbb96770dd0a65ec552b8)
Diffstat (limited to 'ospfd')
| -rw-r--r-- | ospfd/ospf_ldp_sync.c | 2 | 
1 files changed, 1 insertions, 1 deletions
diff --git a/ospfd/ospf_ldp_sync.c b/ospfd/ospf_ldp_sync.c index d1ef85c9a6..496ae5b4bd 100644 --- a/ospfd/ospf_ldp_sync.c +++ b/ospfd/ospf_ldp_sync.c @@ -901,7 +901,7 @@ DEFPY (no_mpls_ldp_sync,  	 *  stop holddown timer if running  	 *  restore ospf cost  	 */ -	SET_FLAG(ldp_sync_info->flags, LDP_SYNC_FLAG_IF_CONFIG); +	UNSET_FLAG(ldp_sync_info->flags, LDP_SYNC_FLAG_IF_CONFIG);  	ldp_sync_info->enabled = LDP_IGP_SYNC_DEFAULT;  	ldp_sync_info->state = LDP_IGP_SYNC_STATE_NOT_REQUIRED;  	EVENT_OFF(ldp_sync_info->t_holddown);  | 
