gobgp icon indicating copy to clipboard operation
gobgp copied to clipboard

Show the peer-group name in the output of the 'gobgp neighbor' cli command

Open taitov opened this issue 1 year ago • 3 comments

Example:

$ gobgp neighbor
Peer          Group     AS      Up/Down State       |#Received  Accepted
127.0.0.1 reflector 123456 16d 11:56:29 Establ      |   195075    195075
127.0.0.2 reflector 123456 16d 11:55:46 Establ      |   195075    195075
127.0.0.3 reflector 123456 16d 11:56:04 Establ      |   195075    195075
127.0.3.1    group2 123456 16d 11:53:09 Establ      |     5166      5166

taitov avatar Feb 10 '25 08:02 taitov

How about the output of peers not in a peer group?

fujita avatar Feb 24 '25 09:02 fujita

How about the output of peers not in a peer group?

$ ./gobgp neig
Peer           Group     AS      Up/Down State       |#Received  Accepted
127.0.2.1     group1  12345 18d 23:31:55 Establ      |       66        66
127.0.3.1     group2  12345 18d 23:31:53 Establ      |        1         1
127.0.0.1            212345        never Active      |        0         0
127.0.0.2  reflector 212345        never Active      |        0         0
127.0.0.3  reflector 212345        never Active      |        0         0

and without any groups:

$ ./gobgp neig
Peer      Group     AS Up/Down State       |#Received  Accepted
127.0.0.1       212345   never Active      |        0         0
127.0.0.2       212345   never Active      |        0         0
127.0.0.3       212345   never Active      |        0         0

taitov avatar May 19 '25 11:05 taitov

Assuming that PeerGroup is often unused, the output doesn’t look good. How about adding an option to enable showing this? If other BGP CLIs (like Cisco, Juniper, etc) works in this way by default, it should be ok though.

fujita avatar May 20 '25 01:05 fujita