BGP: Display neighbor port on show protocol

This commit is contained in:
Ondrej Zajicek 2022-05-21 16:21:34 +02:00
parent 7bb06b34a1
commit a9c19b923c

View file

@ -2487,6 +2487,9 @@ bgp_show_proto_info(struct proto *P)
else else
cli_msg(-1006, " Neighbor address: %I%J", p->remote_ip, p->cf->iface); cli_msg(-1006, " Neighbor address: %I%J", p->remote_ip, p->cf->iface);
if ((p->conn == &p->outgoing_conn) && (p->cf->remote_port != BGP_PORT))
cli_msg(-1006, " Neighbor port: %u", p->cf->remote_port);
cli_msg(-1006, " Neighbor AS: %u", p->remote_as); cli_msg(-1006, " Neighbor AS: %u", p->remote_as);
cli_msg(-1006, " Local AS: %u", p->cf->local_as); cli_msg(-1006, " Local AS: %u", p->cf->local_as);