diff options
| author | Donald Sharp <donaldsharp72@gmail.com> | 2022-08-16 10:16:40 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-08-16 10:16:40 -0400 |
| commit | 6fe4cc69e7e7b93cb5355e4314f3408b63fa9dcc (patch) | |
| tree | dda7636958a13a3ea3b013dcf2284a9fa8cfcfaa | |
| parent | b545e0f99b5dc0d976f33ed2dd0d15199fd880cb (diff) | |
| parent | 606d49a4caeb6cab6bb105c24e88118a4c93174c (diff) | |
Merge pull request #11811 from opensourcerouting/fix/bgp_clist_warning
bgpd: Change warning message when BGP community-list is not found
| -rw-r--r-- | bgpd/bgp_route.c | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/bgpd/bgp_route.c b/bgpd/bgp_route.c index a8cf9ca3c0..04f955f97a 100644 --- a/bgpd/bgp_route.c +++ b/bgpd/bgp_route.c @@ -12464,8 +12464,7 @@ DEFPY(show_ip_bgp, show_ip_bgp_cmd, list = community_list_lookup(bgp_clist, clist_number_or_name, 0, COMMUNITY_LIST_MASTER); if (list == NULL) { - vty_out(vty, - "%% %s is not a valid community-list name\n", + vty_out(vty, "%% %s community-list not found\n", clist_number_or_name); return CMD_WARNING; } @@ -12483,8 +12482,7 @@ DEFPY(show_ip_bgp, show_ip_bgp_cmd, as_list = as_list_lookup(filter); if (as_list == NULL) { - vty_out(vty, - "%% %s is not a valid AS-path access-list name\n", + vty_out(vty, "%% %s AS-path access-list not found\n", filter); return CMD_WARNING; } @@ -12499,7 +12497,7 @@ DEFPY(show_ip_bgp, show_ip_bgp_cmd, plist = prefix_list_lookup(afi, prefix_list_str); if (plist == NULL) { - vty_out(vty, "%% %s is not a valid prefix-list name\n", + vty_out(vty, "%% %s prefix-list not found\n", prefix_list_str); return CMD_WARNING; } @@ -12514,7 +12512,7 @@ DEFPY(show_ip_bgp, show_ip_bgp_cmd, alist = access_list_lookup(afi, access_list_str); if (!alist) { - vty_out(vty, "%% %s is not a valid access-list name\n", + vty_out(vty, "%% %s access-list not found\n", access_list_str); return CMD_WARNING; } @@ -12529,8 +12527,7 @@ DEFPY(show_ip_bgp, show_ip_bgp_cmd, rmap = route_map_lookup_by_name(rmap_str); if (!rmap) { - vty_out(vty, "%% %s is not a valid route-map name\n", - rmap_str); + vty_out(vty, "%% %s route-map not found\n", rmap_str); return CMD_WARNING; } |
