summaryrefslogtreecommitdiff
path: root/zebra/debug.c
diff options
context:
space:
mode:
authorvivek <vivek@cumulusnetworks.com>2016-04-15 10:51:56 -0700
committerDonald Sharp <sharpd@cumulusnetworks.com>2016-09-23 09:30:54 -0400
commit7758e3f31396019344d495946ba2bdd22e2544e9 (patch)
treed920ba8b03f3652b54cd280054bdecb125806836 /zebra/debug.c
parent54d48ea1537864dda453e5773f87be442ad2b7f7 (diff)
Quagga: Static LSP configuration
Add support for statically configuring MPLS transit LSPs. This allows the configuration of ILM to one or more NHLFE, as defined in RFC 3031. The currently supported nexthop types are IPv4 or IPv6. The two label operations supported are swap and PHP; the latter is configured by specifying the out-label as "implicit-null". Note that the operation is against the label, so it should be the same for all NHLFEs. Signed-off-by: Vivek Venkatraman <vivek@cumulusnetworks.com> Reviewed-by: Donald Sharp <sharpd@cumulusnetworks.com> Ticket: CM-4804, ... Reviewed By: CCR-3085 Testing Done: In combination with other patches
Diffstat (limited to 'zebra/debug.c')
-rw-r--r--zebra/debug.c36
1 files changed, 36 insertions, 0 deletions
diff --git a/zebra/debug.c b/zebra/debug.c
index cdf233879a..92354070ef 100644
--- a/zebra/debug.c
+++ b/zebra/debug.c
@@ -31,6 +31,7 @@ unsigned long zebra_debug_kernel;
unsigned long zebra_debug_rib;
unsigned long zebra_debug_fpm;
unsigned long zebra_debug_nht;
+unsigned long zebra_debug_mpls;
DEFUN (show_debugging_zebra,
show_debugging_zebra_cmd,
@@ -82,6 +83,8 @@ DEFUN (show_debugging_zebra,
vty_out (vty, " Zebra FPM debugging is on%s", VTY_NEWLINE);
if (IS_ZEBRA_DEBUG_NHT)
vty_out (vty, " Zebra next-hop tracking debugging is on%s", VTY_NEWLINE);
+ if (IS_ZEBRA_DEBUG_MPLS)
+ vty_out (vty, " Zebra MPLS debugging is on%s", VTY_NEWLINE);
return CMD_SUCCESS;
}
@@ -108,6 +111,17 @@ DEFUN (debug_zebra_nht,
return CMD_WARNING;
}
+DEFUN (debug_zebra_mpls,
+ debug_zebra_mpls_cmd,
+ "debug zebra mpls",
+ DEBUG_STR
+ "Zebra configuration\n"
+ "Debug option set for zebra MPLS LSPs\n")
+{
+ zebra_debug_mpls = ZEBRA_DEBUG_MPLS;
+ return CMD_WARNING;
+}
+
DEFUN (debug_zebra_packet,
debug_zebra_packet_cmd,
"debug zebra packet",
@@ -245,6 +259,18 @@ DEFUN (no_debug_zebra_nht,
return CMD_SUCCESS;
}
+DEFUN (no_debug_zebra_mpls,
+ no_debug_zebra_mpls_cmd,
+ "no debug zebra mpls",
+ NO_STR
+ DEBUG_STR
+ "Zebra configuration\n"
+ "Debug option set for zebra MPLS LSPs\n")
+{
+ zebra_debug_mpls = 0;
+ return CMD_SUCCESS;
+}
+
DEFUN (no_debug_zebra_packet,
no_debug_zebra_packet_cmd,
"no debug zebra packet",
@@ -401,6 +427,11 @@ config_write_debug (struct vty *vty)
vty_out (vty, "debug zebra fpm%s", VTY_NEWLINE);
write++;
}
+ if (IS_ZEBRA_DEBUG_MPLS)
+ {
+ vty_out (vty, "debug zebra mpls%s", VTY_NEWLINE);
+ write++;
+ }
return write;
}
@@ -412,6 +443,7 @@ zebra_debug_init (void)
zebra_debug_kernel = 0;
zebra_debug_rib = 0;
zebra_debug_fpm = 0;
+ zebra_debug_mpls = 0;
install_node (&debug_node, config_write_debug);
@@ -420,6 +452,7 @@ zebra_debug_init (void)
install_element (ENABLE_NODE, &show_debugging_zebra_cmd);
install_element (ENABLE_NODE, &debug_zebra_events_cmd);
install_element (ENABLE_NODE, &debug_zebra_nht_cmd);
+ install_element (ENABLE_NODE, &debug_zebra_mpls_cmd);
install_element (ENABLE_NODE, &debug_zebra_packet_cmd);
install_element (ENABLE_NODE, &debug_zebra_packet_direct_cmd);
install_element (ENABLE_NODE, &debug_zebra_packet_detail_cmd);
@@ -430,6 +463,7 @@ zebra_debug_init (void)
install_element (ENABLE_NODE, &debug_zebra_fpm_cmd);
install_element (ENABLE_NODE, &no_debug_zebra_events_cmd);
install_element (ENABLE_NODE, &no_debug_zebra_nht_cmd);
+ install_element (ENABLE_NODE, &no_debug_zebra_mpls_cmd);
install_element (ENABLE_NODE, &no_debug_zebra_packet_cmd);
install_element (ENABLE_NODE, &no_debug_zebra_kernel_cmd);
install_element (ENABLE_NODE, &no_debug_zebra_kernel_msgdump_cmd);
@@ -439,6 +473,7 @@ zebra_debug_init (void)
install_element (CONFIG_NODE, &debug_zebra_events_cmd);
install_element (CONFIG_NODE, &debug_zebra_nht_cmd);
+ install_element (CONFIG_NODE, &debug_zebra_mpls_cmd);
install_element (CONFIG_NODE, &debug_zebra_packet_cmd);
install_element (CONFIG_NODE, &debug_zebra_packet_direct_cmd);
install_element (CONFIG_NODE, &debug_zebra_packet_detail_cmd);
@@ -449,6 +484,7 @@ zebra_debug_init (void)
install_element (CONFIG_NODE, &debug_zebra_fpm_cmd);
install_element (CONFIG_NODE, &no_debug_zebra_events_cmd);
install_element (CONFIG_NODE, &no_debug_zebra_nht_cmd);
+ install_element (CONFIG_NODE, &no_debug_zebra_mpls_cmd);
install_element (CONFIG_NODE, &no_debug_zebra_packet_cmd);
install_element (CONFIG_NODE, &no_debug_zebra_kernel_cmd);
install_element (CONFIG_NODE, &no_debug_zebra_kernel_msgdump_cmd);