summaryrefslogtreecommitdiff
path: root/lib/mpls.h
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@cumulusnetworks.com>2018-02-08 09:50:32 -0500
committerDonald Sharp <sharpd@cumulusnetworks.com>2018-02-08 20:35:14 -0500
commit339e36d258ad73701d7b9eccc0e56e48cdea1a2d (patch)
tree38adacaebff070103e0388f5aff39d8668cbbbef /lib/mpls.h
parent70e98a7fe7296a1279c6b7142e57221f71ff3121 (diff)
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 <sharpd@cumulusnetworks.com>
Diffstat (limited to 'lib/mpls.h')
-rw-r--r--lib/mpls.h3
1 files changed, 2 insertions, 1 deletions
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. */