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:53:03 +0000 | 
| commit | 7cb448807f6304db5617a603bd35faab856826d5 (patch) | |
| tree | 821aeb1d79e058e9e841c9eac6b1694bbbd75de3 /ospfd/ospf_ldp_sync.c | |
| parent | 9a64394f0b78a49c1cf21d1cdf92bf2f3ad18e1c (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/ospf_ldp_sync.c')
| -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 4aab880d22..cba5a9ca37 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);  | 
