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_null.c | |
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_null.c')
-rw-r--r-- | zebra/zebra_mpls_null.c | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/zebra/zebra_mpls_null.c b/zebra/zebra_mpls_null.c index d6f99b517..12176c024 100644 --- a/zebra/zebra_mpls_null.c +++ b/zebra/zebra_mpls_null.c @@ -45,6 +45,25 @@ mpls_str2label (const char *label_str, u_int8_t *num_labels, } int +zebra_mpls_label_block_add (struct zebra_vrf *vrf, u_int32_t start_label, + u_int32_t end_label) +{ + return 0; +} + +int +zebra_mpls_label_block_del (struct zebra_vrf *zvrf) +{ + return 0; +} + +int +zebra_mpls_write_label_block_config (struct vty *vty, struct zebra_vrf *zvrf) +{ + return 0; +} + +int zebra_mpls_lsp_install (struct zebra_vrf *zvrf, struct route_node *rn, struct rib *rib) { return 0; |