BGP: Output Local AS number in show protocol
Useful for implementation of agents implementing the SNMP-BGP MIB, which requires the local AS of a session to be specified. Thanks to Jan-Philipp Litza for the patch.
This commit is contained in:
parent
e0835db4f1
commit
0b1e1e1a00
1 changed files with 1 additions and 0 deletions
|
@ -2346,6 +2346,7 @@ bgp_show_proto_info(struct proto *P)
|
|||
cli_msg(-1006, " Neighbor address: %I%J", p->remote_ip, p->cf->iface);
|
||||
|
||||
cli_msg(-1006, " Neighbor AS: %u", p->remote_as);
|
||||
cli_msg(-1006, " Local AS: %u", p->cf->local_as);
|
||||
|
||||
if (p->gr_active_num)
|
||||
cli_msg(-1006, " Neighbor graceful restart active");
|
||||
|
|
Loading…
Reference in a new issue