tools, zebra: Allow zebra to insert babel routes as babel

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
This commit is contained in:
Donald Sharp 2017-06-08 08:56:36 -04:00
parent 8dab78d7d4
commit 40078ccb05
2 changed files with 6 additions and 1 deletions

View File

@ -6,3 +6,4 @@
189 rip
190 ripng
191 static
194 babel

View File

@ -121,7 +121,8 @@ static inline int is_selfroute(int proto)
{
if ((proto == RTPROT_BGP) || (proto == RTPROT_OSPF) ||
(proto == RTPROT_STATIC) || (proto == RTPROT_ZEBRA) ||
(proto == RTPROT_ISIS) || (proto == RTPROT_RIPNG)) {
(proto == RTPROT_ISIS) || (proto == RTPROT_RIPNG) ||
(proto == RTPROT_BABEL)) {
return 1;
}
@ -131,6 +132,9 @@ static inline int is_selfroute(int proto)
static inline int get_rt_proto(int proto)
{
switch (proto) {
case ZEBRA_ROUTE_BABEL:
proto = RTPROT_BABEL;
break;
case ZEBRA_ROUTE_BGP:
proto = RTPROT_BGP;
break;