]> git.ipfire.org Git - thirdparty/bird.git/commit - nest/proto.c
Show info from multiple protocols when protocol is not specified
authorOndrej Zajicek (work) <santiago@crfreenet.org>
Thu, 14 May 2020 01:48:17 +0000 (03:48 +0200)
committerOndrej Zajicek (work) <santiago@crfreenet.org>
Sun, 28 Jun 2020 13:38:47 +0000 (15:38 +0200)
commitc26c6bc2d78a2fe76f27dcc9fbb5afc95c3a7626
treeb9058f04982a155d2a214e488e143bf1fac36597
parenta948cf9a5c338518773e6c98e895c829c469f56b
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.
13 files changed:
nest/cli.h
nest/proto.c
nest/protocol.h
proto/babel/babel.c
proto/babel/config.Y
proto/bfd/bfd.c
proto/bfd/config.Y
proto/ospf/config.Y
proto/ospf/ospf.c
proto/rip/config.Y
proto/rip/rip.c
proto/static/config.Y
proto/static/static.c