]> git.puffer.fish Git - matthieu/frr.git/commit
ospfd: fix internal ldp-sync state flags when feature is disabled
authorChristian Breunig <christian@breunig.cc>
Sat, 13 Jul 2024 06:43:36 +0000 (08:43 +0200)
committerChristian Breunig <christian@breunig.cc>
Wed, 17 Jul 2024 08:31:15 +0000 (10:31 +0200)
commit5a70378a47f541b0354fbb96770dd0a65ec552b8
treefe1cd58ff452056f4e4fd55f94b9b7b7ff569837
parent74e720c99f80a79ab5dde8b04a1559319149a74b
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>
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