]> git.puffer.fish Git - matthieu/frr.git/commit
ospfd: fix cli shown in running config when turning off ldp-sync
authorlynnemorrison <lynne.morrison@ibm.com>
Tue, 13 Feb 2024 15:20:11 +0000 (10:20 -0500)
committerlynnemorrison <lynne.morrison@ibm.com>
Tue, 13 Feb 2024 15:20:11 +0000 (10:20 -0500)
commit5d5ac73b6768fcd243d2db28469acbf6f5096f7a
tree3582d33378380b9d83cb9916aa19ae928adbaad8
parent7b94a923ae7a8e6bf1a5fb79f6804f311134d389
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>
ospfd/ospf_ldp_sync.c