zebra: Add sharp to protocols that you can match source-protocol on

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
This commit is contained in:
Donald Sharp 2018-05-17 10:40:58 -04:00
parent 633a66a586
commit 3b83faf238

View File

@ -288,7 +288,7 @@ DEFUN (no_match_ip_nexthop_prefix_len,
DEFUN (match_source_protocol, DEFUN (match_source_protocol,
match_source_protocol_cmd, match_source_protocol_cmd,
"match source-protocol <bgp|ospf|rip|ripng|isis|ospf6|pim|nhrp|eigrp|babel|connected|system|kernel|static>", "match source-protocol <bgp|ospf|rip|ripng|isis|ospf6|pim|nhrp|eigrp|babel|connected|system|kernel|static|sharp>",
MATCH_STR MATCH_STR
"Match protocol via which the route was learnt\n" "Match protocol via which the route was learnt\n"
"BGP protocol\n" "BGP protocol\n"
@ -304,7 +304,8 @@ DEFUN (match_source_protocol,
"Routes from directly connected peer\n" "Routes from directly connected peer\n"
"Routes from system configuration\n" "Routes from system configuration\n"
"Routes from kernel\n" "Routes from kernel\n"
"Statically configured routes\n") "Statically configured routes\n"
"SHARP process\n")
{ {
char *proto = argv[2]->text; char *proto = argv[2]->text;
int i; int i;
@ -320,7 +321,7 @@ DEFUN (match_source_protocol,
DEFUN (no_match_source_protocol, DEFUN (no_match_source_protocol,
no_match_source_protocol_cmd, no_match_source_protocol_cmd,
"no match source-protocol [<bgp|ospf|rip|ripng|isis|ospf6|pim|nhrp|eigrp|babel|connected|system|kernel|static>]", "no match source-protocol [<bgp|ospf|rip|ripng|isis|ospf6|pim|nhrp|eigrp|babel|connected|system|kernel|static|sharp>]",
NO_STR NO_STR
MATCH_STR MATCH_STR
"No match protocol via which the route was learnt\n" "No match protocol via which the route was learnt\n"
@ -337,7 +338,8 @@ DEFUN (no_match_source_protocol,
"Routes from directly connected peer\n" "Routes from directly connected peer\n"
"Routes from system configuration\n" "Routes from system configuration\n"
"Routes from kernel\n" "Routes from kernel\n"
"Statically configured routes\n") "Statically configured routes\n"
"SHARP process\n")
{ {
char *proto = (argc == 4) ? argv[3]->text : NULL; char *proto = (argc == 4) ? argv[3]->text : NULL;
return zebra_route_match_delete(vty, "source-protocol", proto, return zebra_route_match_delete(vty, "source-protocol", proto,