diff options
author | Vivek Venkatraman <vivek@cumulusnetworks.com> | 2017-03-09 17:43:59 +0100 |
---|---|---|
committer | Donald Sharp <sharpd@cumulusnetworks.com> | 2017-04-06 16:32:07 +0200 |
commit | 1b6d5c7e0873e34bb8674ed0d41795eac7a79960 (patch) | |
tree | 48bfeb0483ea57f1a8ed0b31f0228c75d905b4b8 /zebra/zebra_mpls.h | |
parent | bgpd: labeled unicast display (diff) | |
download | frr-1b6d5c7e0873e34bb8674ed0d41795eac7a79960.tar.xz frr-1b6d5c7e0873e34bb8674ed0d41795eac7a79960.zip |
bgpd, zebra: Implement BGP Prefix-SID IETF draft
Implement BGP Prefix-SID IETF draft to be able to signal a labeled-unicast
prefix with a label index (segment ID). This makes it easier to deploy
global MPLS labels with BGP, even without other aspects of Segment Routing
implemented.
This patch implements configuration of the global label block (SRGB) and
configuration of a label-index for a network in BGP.
Signed-off-by: Vivek Venkatraman <vivek@cumulusnetworks.com>
Diffstat (limited to 'zebra/zebra_mpls.h')
-rw-r--r-- | zebra/zebra_mpls.h | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/zebra/zebra_mpls.h b/zebra/zebra_mpls.h index f9d58a46e..f8e95fa10 100644 --- a/zebra/zebra_mpls.h +++ b/zebra/zebra_mpls.h @@ -184,6 +184,25 @@ mpls_label2str (u_int8_t num_labels, mpls_label_t *labels, char *buf, int len); /* + * Add/update global label block. + */ +int +zebra_mpls_label_block_add (struct zebra_vrf *zvrf, u_int32_t start_label, + u_int32_t end_label); + +/* + * Delete global label block. + */ +int +zebra_mpls_label_block_del (struct zebra_vrf *vrf); + +/* + * Display MPLS global label block configuration (VTY command handler). + */ +int +zebra_mpls_write_label_block_config (struct vty *vty, struct zebra_vrf *vrf); + +/* * Install dynamic LSP entry. */ int |