]> git.puffer.fish Git - mirror/frr.git/commit
ospfd: fix internal ldp-sync state flags when feature is disabled 16445/head
authorChristian Breunig <christian@breunig.cc>
Sat, 13 Jul 2024 06:43:36 +0000 (08:43 +0200)
committerMergify <37929162+mergify[bot]@users.noreply.github.com>
Tue, 23 Jul 2024 14:53:14 +0000 (14:53 +0000)
commit430903f36a3b7048d189fc34aa1e91400a0c2135
tree58470836c248e06bf4d3ed815e1f52204c00d85e
parent4d7932ae5eac1fec8cccc92244c81536cd1c2c7e
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)
ospfd/ospf_ldp_sync.c
tests/topotests/ldp_sync_ospf_topo1/r2/show_ospf_ldp_sync.ref
tests/topotests/ldp_sync_ospf_topo1/r2/show_ospf_ldp_sync_r1_eth1_shutdown.ref
tests/topotests/ldp_sync_ospf_topo1/r2/show_ospf_ldp_sync_r2_eth1_shutdown.ref
tests/topotests/ldp_sync_ospf_topo1/r3/show_ospf_ldp_sync.ref
tests/topotests/ldp_sync_ospf_topo1/r3/show_ospf_ldp_sync_r1_eth1_shutdown.ref
tests/topotests/ldp_sync_ospf_topo1/r3/show_ospf_ldp_sync_r2_eth1_shutdown.ref