summaryrefslogtreecommitdiff
path: root/ldpd/ldp_vty_cmds.c
diff options
context:
space:
mode:
authorlynne <lynne@voltanet.io>2020-08-12 19:15:24 -0400
committerlynne <lynne@voltanet.io>2020-09-04 09:24:47 -0400
commit955357174f5eae2e28f0ce58a4dc55f530ce87c6 (patch)
tree3478b02cf06fc3e1f3cdf08e1412a76e84fb97f3 /ldpd/ldp_vty_cmds.c
parentee7d41a4373a1598eb1accb98d3ff2f334fceb81 (diff)
ldpd: Fix issue when starting up LDP with no configuration.
LDP would mark all routes as learned on a non-ldp interface. Then when LDP was configured the labels were not updated correctly. This commit fixes issues 6841 and 6842. Signed-off-by: Lynne Morrison <lynne@voltanet.io>
Diffstat (limited to 'ldpd/ldp_vty_cmds.c')
-rw-r--r--ldpd/ldp_vty_cmds.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/ldpd/ldp_vty_cmds.c b/ldpd/ldp_vty_cmds.c
index fc84c7f76b..53a384fe55 100644
--- a/ldpd/ldp_vty_cmds.c
+++ b/ldpd/ldp_vty_cmds.c
@@ -616,6 +616,8 @@ DEFPY (ldp_show_mpls_ldp_binding,
"Show detailed information\n"
JSON_STR)
{
+ if (!(ldpd_conf->flags & F_LDPD_ENABLED))
+ return CMD_SUCCESS;
if (!local_label_str)
local_label = NO_LABEL;
if (!remote_label_str)