summaryrefslogtreecommitdiffstats
path: root/zebra/zebra_mpls.h
diff options
context:
space:
mode:
authorvivek <vivek@cumulusnetworks.com>2016-04-16 20:23:04 +0200
committerDonald Sharp <sharpd@cumulusnetworks.com>2016-09-23 15:30:57 +0200
commit3ab18ff268c297e7279d71f8f82fc8ce7712c23e (patch)
tree5cecedf834a9b184c57d35e678f6e78493fbcb4c /zebra/zebra_mpls.h
parentQuagga: Install label forwarding entries for statically configured LSPs (diff)
downloadfrr-3ab18ff268c297e7279d71f8f82fc8ce7712c23e.tar.xz
frr-3ab18ff268c297e7279d71f8f82fc8ce7712c23e.zip
Quagga: Display MPLS label forwarding table
Signed-off-by: Vivek Venkatraman <vivek@cumulusnetworks.com> Reviewed-by: Donald Sharp <sharpd@cumulusnetworks.com> Ticket: CM-4084, ... Reviewed By: CCR-3089 Testing Done: Manual
Diffstat (limited to 'zebra/zebra_mpls.h')
-rw-r--r--zebra/zebra_mpls.h26
1 files changed, 26 insertions, 0 deletions
diff --git a/zebra/zebra_mpls.h b/zebra/zebra_mpls.h
index 5fb481781..7d1f49414 100644
--- a/zebra/zebra_mpls.h
+++ b/zebra/zebra_mpls.h
@@ -198,6 +198,19 @@ void
zebra_mpls_lsp_schedule (struct zebra_vrf *zvrf);
/*
+ * Display MPLS label forwarding table for a specific LSP
+ * (VTY command handler).
+ */
+void
+zebra_mpls_print_lsp (struct vty *vty, struct zebra_vrf *zvrf, mpls_label_t label);
+
+/*
+ * Display MPLS label forwarding table (VTY command handler).
+ */
+void
+zebra_mpls_print_lsp_table (struct vty *vty, struct zebra_vrf *zvrf);
+
+/*
* Display MPLS LSP configuration of all static LSPs (VTY command handler).
*/
int
@@ -254,4 +267,17 @@ lsp_type_from_rib_type (int rib_type)
}
}
+/* NHLFE type as printable string. */
+static inline const char *
+nhlfe_type2str(enum lsp_types_t lsp_type)
+{
+ switch (lsp_type)
+ {
+ case ZEBRA_LSP_STATIC:
+ return "Static";
+ default:
+ return "Unknown";
+ }
+}
+
#endif /*_ZEBRA_MPLS_H */