From 339e36d258ad73701d7b9eccc0e56e48cdea1a2d Mon Sep 17 00:00:00 2001 From: Donald Sharp Date: Thu, 8 Feb 2018 09:50:32 -0500 Subject: lib, sharpd, zebra: Add new enum for lsp type and pass it through. Add the ability to pass the lsp owner type through the zapi and in addition add a new label type for the sharp protocol for testing. Finally modify zebra_mpls.h to not have defaults specified for the enum. That way when we add a new LSP type the compile fails and the person doing the addition knows where he has to touch shit. Signed-off-by: Donald Sharp --- lib/mpls.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'lib/mpls.h') diff --git a/lib/mpls.h b/lib/mpls.h index c6c0297ff0..b55d4875ae 100644 --- a/lib/mpls.h +++ b/lib/mpls.h @@ -115,7 +115,8 @@ enum lsp_types_t { ZEBRA_LSP_STATIC = 1, /* Static LSP. */ ZEBRA_LSP_LDP = 2, /* LDP LSP. */ ZEBRA_LSP_BGP = 3, /* BGP LSP. */ - ZEBRA_LSP_SR = 4 /* Segment Routing LSP. */ + ZEBRA_LSP_SR = 4, /* Segment Routing LSP. */ + ZEBRA_LSP_SHARP = 5, /* Identifier for test protocol */ }; /* Functions for basic label operations. */ -- cgit v1.2.3