vty_out(vty, "EstdCnt DropCnt ResetTime Reason\n");
else
vty_out(vty,
- "V AS MsgRcvd MsgSent TblVer InQ OutQ Up/Down State/PfxRcd PfxSnt\n");
+ "V AS MsgRcvd MsgSent TblVer InQ OutQ Up/Down State/PfxRcd PfxSnt Desc\n");
}
}
peer->established);
json_object_int_add(json_peer, "connectionsDropped",
peer->dropped);
+ if (peer->desc)
+ json_object_string_add(
+ json_peer, "desc", peer->desc);
}
/* Avoid creating empty peer dicts in JSON */
if (json_peer == NULL)
vty_out(vty, " %8u", 0);
}
+ if (peer->desc)
+ vty_out(vty, " %s", peer->desc);
+ else
+ vty_out(vty, " N/A");
vty_out(vty, "\n");
}
neighbor fc00:0:0:8::1000 remote-as 100
neighbor fc00:0:0:8::1000 timers 3 10
neighbor fc00:0:0:8::2000 remote-as 200
+ neighbor 192.168.7.10 description Transit_cogent
+ neighbor 192.168.7.20 description Client_Bibi_Full
+ neighbor fc00:0:0:8::1000 description Transit_cogent_v6
+ neighbor fc00:0:0:8::2000 description Client_Toto_default
neighbor fc00:0:0:8::2000 timers 3 10
!
address-family ipv4 unicast
RIB entries 1, using XXXX bytes of memory
Peers 2, using XXXX KiB of memory
-Neighbor V AS MsgRcvd MsgSent TblVer InQ OutQ Up/Down State/PfxRcd PfxSnt
-fc00:0:0:8::1000 4 100 0 0 0 0 0 never Active 0
-fc00:0:0:8::2000 4 200 0 0 0 0 0 never Active 0
+Neighbor V AS MsgRcvd MsgSent TblVer InQ OutQ Up/Down State/PfxRcd PfxSnt Desc
+fc00:0:0:8::1000 4 100 0 0 0 0 0 never Active 0 Transit_cogent_v6
+fc00:0:0:8::2000 4 200 0 0 0 0 0 never Active 0 Client_Toto_default
RIB entries 1, using XXXX bytes of memory
Peers 4, using XXXX KiB of memory
-Neighbor V AS MsgRcvd MsgSent TblVer InQ OutQ Up/Down State/PfxRcd PfxSnt
-192.168.7.10 4 100 0 0 0 0 0 never Active 0
-192.168.7.20 4 200 0 0 0 0 0 never Active 0
-fc00:0:0:8::1000 4 100 0 0 0 0 0 never Active 0
-fc00:0:0:8::2000 4 200 0 0 0 0 0 never Active 0
+Neighbor V AS MsgRcvd MsgSent TblVer InQ OutQ Up/Down State/PfxRcd PfxSnt Desc
+192.168.7.10 4 100 0 0 0 0 0 never Active 0 Transit_cogent
+192.168.7.20 4 200 0 0 0 0 0 never Active 0 Client_Bibi_Full
+fc00:0:0:8::1000 4 100 0 0 0 0 0 never Active 0 Transit_cogent_v6
+fc00:0:0:8::2000 4 200 0 0 0 0 0 never Active 0 Client_Toto_default
for i in range(1, 2):
for view in range(1, 4):
notConverged = net["r%s" % i].cmd(
- 'vtysh -c "show ip bgp view %s summary" 2> /dev/null | grep ^[0-9] | grep -vP " 11\s+(\d+)$"'
+ 'vtysh -c "show ip bgp view %s summary" 2> /dev/null | grep ^[0-9] | grep -vP " 11\s+(\d+)"'
% view
)
if notConverged: