!= PREFIX_PERMIT)
continue;
}
+ if (type == bgp_show_type_access_list) {
+ struct access_list *alist = output_arg;
+
+ if (access_list_apply(alist, dest_p) !=
+ FILTER_PERMIT)
+ continue;
+ }
if (type == bgp_show_type_filter_list) {
struct as_list *as_list = output_arg;
|community-list <(1-500)|COMMUNITY_LIST_NAME> [exact-match]\
|filter-list AS_PATH_FILTER_NAME\
|prefix-list WORD\
+ |access-list ACCESSLIST_NAME\
|route-map RMAP_NAME\
|rpki <invalid|valid|notfound>\
|version (1-4294967295)\
"Regular expression access list name\n"
"Display routes conforming to the prefix-list\n"
"Prefix-list name\n"
+ "Display routes conforming to the access-list\n"
+ "Access-list name\n"
"Display routes matching the route-map\n"
"A route-map to match on\n"
"RPKI route types\n"
output_arg = plist;
}
+ if (argv_find(argv, argc, "access-list", &idx)) {
+ const char *access_list_str = argv[++idx]->arg;
+ struct access_list *alist;
+
+ alist = access_list_lookup(afi, access_list_str);
+ if (!alist) {
+ vty_out(vty, "%% %s is not a valid access-list name\n",
+ access_list_str);
+ return CMD_WARNING;
+ }
+
+ sh_type = bgp_show_type_access_list;
+ output_arg = alist;
+ }
+
if (argv_find(argv, argc, "route-map", &idx)) {
const char *rmap_str = argv[++idx]->arg;
struct route_map *rmap;