From d77d2d62fdb70474d2e2abfd0d58e651fb9ef075 Mon Sep 17 00:00:00 2001 From: Maria Matejka Date: Thu, 3 Jul 2025 17:16:45 +0200 Subject: [PATCH] BGP: Show onlink information in CLI --- proto/bgp/bgp.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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); -- 2.47.3