Redistribute table related configs fail for BGP and OSPF

Signed-off-by: Daniel Walton <dwalton@cumulusnetworks.com>
Reviewed-by:   Don Slide <dslice@cumulusnetworks.com>

Ticket: CM-9295
This commit is contained in:
Daniel Walton 2016-02-19 13:31:26 +00:00
parent 30a3822f2b
commit a48f437a90

View File

@ -961,7 +961,7 @@ proto_redistnum(int afi, const char *s)
return ZEBRA_ROUTE_ISIS;
else if (strncmp (s, "bg", 2) == 0)
return ZEBRA_ROUTE_BGP;
else if (strncmp (s, "ba", 2) == 0)
else if (strncmp (s, "ta", 2) == 0)
return ZEBRA_ROUTE_TABLE;
}
if (afi == AFI_IP6)
@ -980,7 +980,7 @@ proto_redistnum(int afi, const char *s)
return ZEBRA_ROUTE_ISIS;
else if (strncmp (s, "bg", 2) == 0)
return ZEBRA_ROUTE_BGP;
else if (strncmp (s, "ba", 2) == 0)
else if (strncmp (s, "ta", 2) == 0)
return ZEBRA_ROUTE_TABLE;
}
return -1;