From: Maria Matejka Date: Thu, 3 Jul 2025 15:16:45 +0000 (+0200) Subject: BGP: Show onlink information in CLI X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d77d2d62fdb70474d2e2abfd0d58e651fb9ef075;p=thirdparty%2Fbird.git BGP: Show onlink information in CLI --- diff --git a/proto/bgp/bgp.c b/proto/bgp/bgp.c index ad51e6260..7389e597c 100644 --- a/proto/bgp/bgp.c +++ b/proto/bgp/bgp.c @@ -3178,9 +3178,9 @@ bgp_show_proto_info(struct proto *P) cli_msg(-1006, " BGP state: %s", bgp_state_dsc(p)); if (bgp_is_dynamic(p) && p->cf->remote_range) - cli_msg(-1006, " Neighbor range: %N", p->cf->remote_range); + cli_msg(-1006, " Neighbor range: %N%s", p->cf->remote_range, p->cf->onlink ? " onlink" : ""); else - cli_msg(-1006, " Neighbor address: %I%J", p->remote_ip, p->cf->iface); + cli_msg(-1006, " Neighbor address: %I%J%s", p->remote_ip, p->cf->iface, p->cf->onlink ? " onlink" : ""); if ((p->conn == &p->outgoing_conn) && (p->cf->remote_port != BGP_PORT)) cli_msg(-1006, " Neighbor port: %u", p->cf->remote_port);