summaryrefslogtreecommitdiff
path: root/zebra/zebra_mpls_null.c
diff options
context:
space:
mode:
authorDaniel Walton <dwalton@cumulusnetworks.com>2017-05-10 09:42:00 -0400
committerDonald Sharp <sharpd@cumulusnetworks.com>2017-05-10 10:06:47 -0400
commit4caac24b23148a1ed37dd389b13e4475dc40bb64 (patch)
tree1ebda6b30cb49a5c6c8c4124b9e06ec78b7e06fc /zebra/zebra_mpls_null.c
parentb5ab78e69144efb4dbd9429451e8391b013b434d (diff)
zebra: lsp_install() failed due to ZEBRA_FLAG_SELECTED check
ZEBRA_FLAG_SELECTED hasn't been set yet by the time lsp_install is called. The call path is: rib_process -> rib_process_add_fib -> zebra_mpls_lsp_install -> lsp_install but ZEBRA_FLAG_SELECTED is set in rib_process after it calls rib_process_add_fib. I can't think of anything that it would hurt to install the LSP regardless of whether ZEBRA_FLAG_SELECTED is set later. I also cleaned up some UI (json and display the pretty label names instead of their numeric values). Signed-off-by: Daniel Walton <dwalton@cumulusnetworks.com>
Diffstat (limited to 'zebra/zebra_mpls_null.c')
-rw-r--r--zebra/zebra_mpls_null.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/zebra/zebra_mpls_null.c b/zebra/zebra_mpls_null.c
index 168c8d003c..0333b6e6b4 100644
--- a/zebra/zebra_mpls_null.c
+++ b/zebra/zebra_mpls_null.c
@@ -32,7 +32,7 @@ int mpls_enabled;
char *
mpls_label2str (u_int8_t num_labels, mpls_label_t *labels,
- char *buf, int len)
+ char *buf, int len, int pretty)
{
return NULL;
}