From 4873b3b9304aa147a19a3155ca749e2b16df52ba Mon Sep 17 00:00:00 2001 From: Daniel Walton Date: Thu, 10 Mar 2016 22:14:08 +0000 Subject: [PATCH] show bgp neighbor should accept peer hostname Signed-off-by: Daniel Walton Reviewed-by: Vivek Venkatraman Ticket: CM-9616 --- bgpd/bgp_vty.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bgpd/bgp_vty.c b/bgpd/bgp_vty.c index 652e835b2c..a40e8b7bb6 100644 --- a/bgpd/bgp_vty.c +++ b/bgpd/bgp_vty.c @@ -10637,7 +10637,8 @@ bgp_show_neighbor (struct vty *vty, struct bgp *bgp, enum show_type type, case show_peer: if (conf_if) { - if (peer->conf_if && !strcmp(peer->conf_if, conf_if)) + if ((peer->conf_if && !strcmp(peer->conf_if, conf_if)) || + (peer->hostname && !strcmp(peer->hostname, conf_if))) { find = 1; bgp_show_peer (vty, peer, use_json, json, json_neigh); -- 2.39.5