diff options
author | Ondrej Zajicek (work) <santiago@crfreenet.org> | 2019-04-30 13:44:11 +0200 |
---|---|---|
committer | Ondrej Zajicek (work) <santiago@crfreenet.org> | 2019-04-30 13:44:11 +0200 |
commit | 0b1e1e1a007f860230855d0c9e8adc88969ee077 (patch) | |
tree | e33565ba6dc8ba7114e523360c2553401104bf0f | |
parent | e0835db4f137c1686c26165053ec9c0578b94009 (diff) |
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.
-rw-r--r-- | proto/bgp/bgp.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/proto/bgp/bgp.c b/proto/bgp/bgp.c index a5c06783..35f1f588 100644 --- a/proto/bgp/bgp.c +++ b/proto/bgp/bgp.c @@ -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"); |