From: Donald Sharp Date: Mon, 14 Nov 2016 20:28:17 +0000 (-0500) Subject: bgpd: Allow 'show bgp neighbor' to indicate authentication or not X-Git-Tag: reindent-master-before~150^2~1 X-Git-Url: https://git.puffer.fish/?a=commitdiff_plain;h=047fc9501d8d2f2279c2be42108967b2a63eb257;p=mirror%2Ffrr.git bgpd: Allow 'show bgp neighbor' to indicate authentication or not When we configure authentication. Allow the 'show bgp neighbor' commands( and their ilk ) to indicate that the peer has authentication enabled. Signed-off-by: Donald Sharp --- diff --git a/bgpd/bgp_vty.c b/bgpd/bgp_vty.c index e5734bd76b..c24580ed4e 100644 --- a/bgpd/bgp_vty.c +++ b/bgpd/bgp_vty.c @@ -9227,6 +9227,8 @@ bgp_show_peer (struct vty *vty, struct peer *p, u_char use_json, json_object *js json_object_int_add(json_neigh, "mraiInterval", p->v_routeadv); json_object_int_add(json_neigh, "mraiTimerExpireInMsecs", thread_timer_remain_second (p->t_routeadv) * 1000); } + if (p->password) + json_object_int_add(json_neigh, "authenticationEnabled", 1); if (p->t_read) json_object_string_add(json_neigh, "readThread", "on"); @@ -9254,6 +9256,8 @@ bgp_show_peer (struct vty *vty, struct peer *p, u_char use_json, json_object *js vty_out (vty, "MRAI (interval %u) timer expires in %ld seconds%s", p->v_routeadv, thread_timer_remain_second (p->t_routeadv), VTY_NEWLINE); + if (p->password) + vty_out (vty, "Peer Authentication Enabled%s", VTY_NEWLINE); vty_out (vty, "Read thread: %s Write thread: %s%s", p->t_read ? "on" : "off",