summaryrefslogtreecommitdiff
path: root/ldpd/ldp_debug.c
diff options
context:
space:
mode:
authorRenato Westphal <renato@opensourcerouting.org>2020-09-11 15:55:04 -0300
committerGitHub <noreply@github.com>2020-09-11 15:55:04 -0300
commitbeb91114ec5fcfa2bca1c7c1358b39c6640aec4c (patch)
tree2ded0df0de56d9e251e1b1abf6e81d364e35570a /ldpd/ldp_debug.c
parenta77bd0f4e6b7d63e6f66288d7ea715ae8c55feee (diff)
parent1cbf96a8adf020ce6107ce26fb065d44373e14ce (diff)
Merge pull request #6789 from volta-networks/feat_ldp_igp_sync
ldpd: Add support for LDP-IGP Synchronization
Diffstat (limited to 'ldpd/ldp_debug.c')
-rw-r--r--ldpd/ldp_debug.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/ldpd/ldp_debug.c b/ldpd/ldp_debug.c
index b9ef60ff94..a8d9833dde 100644
--- a/ldpd/ldp_debug.c
+++ b/ldpd/ldp_debug.c
@@ -99,6 +99,11 @@ ldp_vty_debug(struct vty *vty, const char *negate, const char *type_str,
DEBUG_ON(msg, LDP_DEBUG_MSG_SEND_ALL);
}
}
+ } else if (strcmp(type_str, "sync") == 0) {
+ if (negate)
+ DEBUG_OFF(sync, LDP_DEBUG_SYNC);
+ else
+ DEBUG_ON(sync, LDP_DEBUG_SYNC);
} else if (strcmp(type_str, "zebra") == 0) {
if (negate)
DEBUG_OFF(zebra, LDP_DEBUG_ZEBRA);
@@ -137,6 +142,8 @@ ldp_vty_show_debugging(struct vty *vty)
" LDP detailed messages debugging is on (outbound)\n");
else if (LDP_DEBUG(msg, LDP_DEBUG_MSG_SEND))
vty_out (vty," LDP messages debugging is on (outbound)\n");
+ if (LDP_DEBUG(sync, LDP_DEBUG_SYNC))
+ vty_out (vty, " LDP sync debugging is on\n");
if (LDP_DEBUG(zebra, LDP_DEBUG_ZEBRA))
vty_out (vty, " LDP zebra debugging is on\n");
vty_out (vty, "\n");
@@ -195,5 +202,10 @@ ldp_debug_config_write(struct vty *vty)
write = 1;
}
+ if (CONF_LDP_DEBUG(sync, LDP_DEBUG_SYNC)) {
+ vty_out (vty, "debug mpls ldp sync\n");
+ write = 1;
+ }
+
return (write);
}