diff options
| author | Don Slice <dslice@cumulusnetworks.com> | 2017-02-02 12:58:33 -0500 | 
|---|---|---|
| committer | Donald Sharp <sharpd@cumulusnetworks.com> | 2017-04-06 10:29:19 -0400 | 
| commit | a64448baa6150a7431d55e0e65d0b51d62c4b5be (patch) | |
| tree | adb195d3f8e26c4ae893f85fb1020e1d55d73241 /zebra/zebra_mpls_vty.c | |
| parent | cceb79ac9b05c2f5d3e4a74b9cd11e908ea634ec (diff) | |
zebra: labeled unicast handling
Support install of labeled-unicast routes by a client. This would be
BGP, in order to install routes corresponding to AFI/SAFI 1/4 (IPv4)
or 2/4 (IPv6). Convert labeled-unicast routes into label forwarding
entries (i.e., transit LSPs) when there is a static label binding.
Signed-off-by: Don Slice <dslice@cumulusnetworks.com>
Diffstat (limited to 'zebra/zebra_mpls_vty.c')
| -rw-r--r-- | zebra/zebra_mpls_vty.c | 6 | 
1 files changed, 3 insertions, 3 deletions
diff --git a/zebra/zebra_mpls_vty.c b/zebra/zebra_mpls_vty.c index 90624c12a4..8d8025682a 100644 --- a/zebra/zebra_mpls_vty.c +++ b/zebra/zebra_mpls_vty.c @@ -133,7 +133,7 @@ zebra_mpls_transit_lsp (struct vty *vty, int add_cmd, const char *inlabel_str,  #if defined(HAVE_CUMULUS)        /* Check that label value is consistent. */        if (!zebra_mpls_lsp_label_consistent (zvrf, in_label, out_label, gtype, -                                            &gate, NULL, 0)) +                                            &gate, 0))          {            vty_out (vty, "%% Label value not consistent%s",                     VTY_NEWLINE); @@ -142,10 +142,10 @@ zebra_mpls_transit_lsp (struct vty *vty, int add_cmd, const char *inlabel_str,  #endif /* HAVE_CUMULUS */        ret = zebra_mpls_static_lsp_add (zvrf, in_label, out_label, gtype, -                                       &gate, NULL, 0); +                                       &gate, 0);      }    else -    ret = zebra_mpls_static_lsp_del (zvrf, in_label, gtype, &gate, NULL, 0); +    ret = zebra_mpls_static_lsp_del (zvrf, in_label, gtype, &gate, 0);    if (ret)      {  | 
