Merge pull request #16444 from FRRouting/mergify/bp/stable/10.0/pr-16376

ospfd: fix internal ldp-sync state flags when feature is disabled (backport #16376)
This commit is contained in:
Russ White 2024-07-23 17:52:48 -04:00 committed by GitHub
commit 8cbd70bafc
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
7 changed files with 13 additions and 13 deletions

View File

@ -901,7 +901,7 @@ DEFPY (no_mpls_ldp_sync,
* stop holddown timer if running * stop holddown timer if running
* restore ospf cost * 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->enabled = LDP_IGP_SYNC_DEFAULT;
ldp_sync_info->state = LDP_IGP_SYNC_STATE_NOT_REQUIRED; ldp_sync_info->state = LDP_IGP_SYNC_STATE_NOT_REQUIRED;
EVENT_OFF(ldp_sync_info->t_holddown); EVENT_OFF(ldp_sync_info->t_holddown);

View File

@ -5,8 +5,8 @@
"ldpIgpSyncState":"Sync achieved" "ldpIgpSyncState":"Sync achieved"
}, },
"r2-eth2":{ "r2-eth2":{
"ldpIgpSyncEnabled":false, "ldpIgpSyncEnabled":true,
"holdDownTimeInSec":50, "holdDownTimeInSec":50,
"ldpIgpSyncState":"Sync not required" "ldpIgpSyncState":"Sync achieved"
} }
} }

View File

@ -5,8 +5,8 @@
"ldpIgpSyncState":"Holding down until Sync" "ldpIgpSyncState":"Holding down until Sync"
}, },
"r2-eth2":{ "r2-eth2":{
"ldpIgpSyncEnabled":false, "ldpIgpSyncEnabled":true,
"holdDownTimeInSec":50, "holdDownTimeInSec":50,
"ldpIgpSyncState":"Sync not required" "ldpIgpSyncState":"Sync achieved"
} }
} }

View File

@ -1,7 +1,7 @@
{ {
"r2-eth2":{ "r2-eth2":{
"ldpIgpSyncEnabled":false, "ldpIgpSyncEnabled":true,
"holdDownTimeInSec":50, "holdDownTimeInSec":50,
"ldpIgpSyncState":"Sync not required" "ldpIgpSyncState":"Sync achieved"
} }
} }

View File

@ -1,8 +1,8 @@
{ {
"r3-eth1":{ "r3-eth1":{
"ldpIgpSyncEnabled":false, "ldpIgpSyncEnabled":true,
"holdDownTimeInSec":50, "holdDownTimeInSec":50,
"ldpIgpSyncState":"Sync not required" "ldpIgpSyncState":"Sync achieved"
}, },
"r3-eth2":{ "r3-eth2":{
"ldpIgpSyncEnabled":true, "ldpIgpSyncEnabled":true,

View File

@ -1,8 +1,8 @@
{ {
"r3-eth1":{ "r3-eth1":{
"ldpIgpSyncEnabled":false, "ldpIgpSyncEnabled":true,
"holdDownTimeInSec":50, "holdDownTimeInSec":50,
"ldpIgpSyncState":"Sync not required" "ldpIgpSyncState":"Sync achieved"
}, },
"r3-eth2":{ "r3-eth2":{
"ldpIgpSyncEnabled":true, "ldpIgpSyncEnabled":true,

View File

@ -1,8 +1,8 @@
{ {
"r3-eth1":{ "r3-eth1":{
"ldpIgpSyncEnabled":false, "ldpIgpSyncEnabled":true,
"holdDownTimeInSec":50, "holdDownTimeInSec":50,
"ldpIgpSyncState":"Sync not required" "ldpIgpSyncState":"Sync achieved"
}, },
"r3-eth2":{ "r3-eth2":{
"ldpIgpSyncEnabled":true, "ldpIgpSyncEnabled":true,