diff options
| author | Donald Sharp <sharpd@cumulusnetworks.com> | 2018-09-08 13:48:48 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-09-08 13:48:48 -0400 |
| commit | 714e135429aaca467bd2ed654edfe977b5cd1a9c (patch) | |
| tree | fa3d60c363844150764df32237d1d9799820694f /zebra/rt_netlink.c | |
| parent | 37258ed97ff983ebbc8fafd85527879a59194bb7 (diff) | |
| parent | 3be6e41147632ee1bc2105f4c6e4149df6c26519 (diff) | |
Merge pull request #2875 from opensourcerouting/fabricd
OpenFabric support
Diffstat (limited to 'zebra/rt_netlink.c')
| -rw-r--r-- | zebra/rt_netlink.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/zebra/rt_netlink.c b/zebra/rt_netlink.c index 3683596b41..8e2cd2e418 100644 --- a/zebra/rt_netlink.c +++ b/zebra/rt_netlink.c @@ -99,7 +99,7 @@ static inline int is_selfroute(int proto) || (proto == RTPROT_NHRP) || (proto == RTPROT_EIGRP) || (proto == RTPROT_LDP) || (proto == RTPROT_BABEL) || (proto == RTPROT_RIP) || (proto == RTPROT_SHARP) - || (proto == RTPROT_PBR)) { + || (proto == RTPROT_PBR) || (proto == RTPROT_OPENFABRIC)) { return 1; } @@ -146,6 +146,9 @@ static inline int zebra2proto(int proto) case ZEBRA_ROUTE_PBR: proto = RTPROT_PBR; break; + case ZEBRA_ROUTE_OPENFABRIC: + proto = RTPROT_OPENFABRIC; + break; default: /* * When a user adds a new protocol this will show up @@ -203,6 +206,9 @@ static inline int proto2zebra(int proto, int family) case RTPROT_PBR: proto = ZEBRA_ROUTE_PBR; break; + case RTPROT_OPENFABRIC: + proto = ZEBRA_ROUTE_OPENFABRIC; + break; default: /* * When a user adds a new protocol this will show up |
