Skip to content

Commit

Permalink
ospfd: fix cli shown in running config when turning off ldp-sync
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
lynnemorrison committed Feb 13, 2024
1 parent 7b94a92 commit 5d5ac73
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ospfd/ospf_ldp_sync.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 5d5ac73

Please sign in to comment.