diff options
Diffstat (limited to 'zebra/zebra_mpls.h')
| -rw-r--r-- | zebra/zebra_mpls.h | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/zebra/zebra_mpls.h b/zebra/zebra_mpls.h index 5fb481781a..7d1f494142 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 */ |
