diff options
| author | Don Slice <dslice@cumulusnetworks.com> | 2017-02-02 13:34:00 -0500 |
|---|---|---|
| committer | Donald Sharp <sharpd@cumulusnetworks.com> | 2017-04-06 10:29:19 -0400 |
| commit | e05fd627fb9886cecdff07413eabb51f958811f1 (patch) | |
| tree | cf02d3e1cb2cbe2a370ab02194563732380caf5e /lib/zebra.h | |
| parent | a64448baa6150a7431d55e0e65d0b51d62c4b5be (diff) | |
quagga: labeled unicast definitions
Internal and IANA definitions for labeled-unicast SAFI. Note that this SAFI
is specific to BGP and maps to the corresponding unicast SAFI in Zebra.
Signed-off-by: Don Slice <dslice@cumulusnetworks.com>
Diffstat (limited to 'lib/zebra.h')
| -rw-r--r-- | lib/zebra.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/zebra.h b/lib/zebra.h index 985382bff5..ef261eedc1 100644 --- a/lib/zebra.h +++ b/lib/zebra.h @@ -514,6 +514,8 @@ static inline safi_t safi_iana2int (safi_t safi) return SAFI_ENCAP; if (safi == IANA_SAFI_EVPN) return SAFI_EVPN; + if (safi == IANA_SAFI_LABELED_UNICAST) + return SAFI_LABELED_UNICAST; return SAFI_MAX; } @@ -529,6 +531,8 @@ static inline safi_t safi_int2iana (safi_t safi) return IANA_SAFI_ENCAP; if (safi == SAFI_EVPN) return IANA_SAFI_EVPN; + if (safi == SAFI_LABELED_UNICAST) + return IANA_SAFI_LABELED_UNICAST; return IANA_SAFI_RESERVED; } |
