summaryrefslogtreecommitdiff
path: root/ospfd/ospf_ldp_sync.c
diff options
context:
space:
mode:
authorlynnemorrison <lynne.morrison@ibm.com>2024-02-13 10:20:11 -0500
committerlynnemorrison <lynne.morrison@ibm.com>2024-02-13 10:20:11 -0500
commit5d5ac73b6768fcd243d2db28469acbf6f5096f7a (patch)
tree3582d33378380b9d83cb9916aa19ae928adbaad8 /ospfd/ospf_ldp_sync.c
parent7b94a923ae7a8e6bf1a5fb79f6804f311134d389 (diff)
ospfd: fix cli shown in running config when turning off ldp-sync
LDP-Sync is automatically enabled on interfaces when turned on in router ospf context. The user can remove ldp-sync from running on an interface, by issuing a "no ip ospd mpls ldp-sync" command. To remove all ldp-sync interface commands the user must delete ldp-sync at the router level. The code was not correctly removing the config. This PR fixes that issue. Now the extra cli ldp-sync commands are removed when ldp-sync is disabled. Signed-off-by: Lynne Morrison <lynne.morrison@ibm.com>
Diffstat (limited to 'ospfd/ospf_ldp_sync.c')
-rw-r--r--ospfd/ospf_ldp_sync.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ospfd/ospf_ldp_sync.c b/ospfd/ospf_ldp_sync.c
index 4aab880d22..d1ef85c9a6 100644
--- a/ospfd/ospf_ldp_sync.c
+++ b/ospfd/ospf_ldp_sync.c
@@ -774,7 +774,7 @@ DEFPY (no_ospf_mpls_ldp_sync,
"Disable MPLS LDP-IGP Sync\n")
{
VTY_DECLVAR_INSTANCE_CONTEXT(ospf, ospf);
- ospf_ldp_sync_gbl_exit(ospf, false);
+ ospf_ldp_sync_gbl_exit(ospf, true);
return CMD_SUCCESS;
}