From c26c6bc2d78a2fe76f27dcc9fbb5afc95c3a7626 Mon Sep 17 00:00:00 2001 From: "Ondrej Zajicek (work)" Date: Thu, 14 May 2020 03:48:17 +0200 Subject: Show info from multiple protocols when protocol is not specified Most commands like 'show ospf neighbors' fail when protocol is not specified and there are multiple instances of given protocol type. This is annoying in BIRD 2, as many protocols have IPv4 and IPv6 instances. The patch changes that by showing output from all protocol instances of appropriate type. Note that the patch also removes terminating cli_msg() call from these commands and moves it to the common iterating code. --- proto/static/config.Y | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'proto/static/config.Y') diff --git a/proto/static/config.Y b/proto/static/config.Y index 6e410879..41e10dbf 100644 --- a/proto/static/config.Y +++ b/proto/static/config.Y @@ -158,7 +158,7 @@ stat_route_opt_list: CF_CLI(SHOW STATIC, optproto, [], [[Show details of static protocol]]) -{ static_show(proto_get_named($3, &proto_static)); } ; +{ PROTO_WALK_CMD($3, &proto_static, p) static_show(p); } ; CF_CODE -- cgit v1.2.3