private static Map<String, String> neighborStatusMap = new HashMap<>();
private BgpConfigurationManager bgpMgr;
- private static Map<String, BgpAlarmStatus> neighborsRaisedAlarmStatusMap = new HashMap<>();
+ public static Map<String, BgpAlarmStatus> neighborsRaisedAlarmStatusMap = new HashMap<>();
private static final String ALARM_TEXT = "Bgp Neighbor TCP connection is down";
@Override
LOG.debug("Fetching neighbor status' from BGP");
BgpCounters.resetFile(BgpCounters.BGP_VPNV4_SUMMARY_FILE);
BgpCounters.resetFile(BgpCounters.BGP_VPNV6_SUMMARY_FILE);
+ BgpCounters.resetFile(BgpCounters.BGP_EVPN_SUMMARY_FILE);
neighborStatusMap.clear();
if (bgpMgr != null && bgpMgr.getBgpCounters() != null) {
"show ip bgp vpnv6 all summary");
BgpCounters.parseIpBgpVpnv6AllSummary(neighborStatusMap);
+
+ bgpMgr.getBgpCounters().fetchCmdOutputs(BgpCounters.BGP_EVPN_SUMMARY_FILE,
+ "show bgp l2vpn evpn all summary");
+
+ BgpCounters.parseBgpL2vpnEvpnAllSummary(neighborStatusMap);
+
processNeighborStatusMap(neighborStatusMap, nbrList, neighborsRaisedAlarmStatusMap);
}
LOG.debug("Finished getting the status of BGP neighbors");