BGP: Display neighbor port on show protocol
This commit is contained in:
parent
7bb06b34a1
commit
a9c19b923c
1 changed files with 3 additions and 0 deletions
|
@ -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);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue