## [2.1.4] - 21/06/2021
- [DCAEGEN2-2711](https://jira.onap.org/browse/DCAEGEN2-2711) - Update sdk version to load policies from a file mounted by policy sidecar container
- [DCAEGEN2-2809](https://jira.onap.org/browse/DCAEGEN2-2809) - Remove security vulnerabilities
+ - [DCAEGEN2-2884](https://jira.onap.org/browse/DCAEGEN2-2884) - Update FM message spec to VES 7.2
## [2.1.3] - 03/02/2021
- [DCAEGEN2-2599](https://jira.onap.org/browse/DCAEGEN2-2599) - Remove security vulnerabilities
* ============LICENSE_START=======================================================
* son-handler
* ================================================================================
- * Copyright (C) 2019 Wipro Limited.
+ * Copyright (C) 2019-2021 Wipro Limited.
* ==============================================================================
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
log.info("Handling Fault notification");
log.info("fm notification {}", fmNotification);
-
+
Set<String> cellIds = new HashSet<>();
List<ClusterDetails> clusterDetails = clusterUtils.getAllClusters();
String networkId = "";
Map<String, ArrayList<Integer>> collisionConfusionMap = new HashMap<>();
-
for (FaultEvent faultEvent : fmNotification) {
String cellId = faultEvent.getEvent().getCommonEventHeader().getSourceName();
cellIds.add(cellId);
networkId = faultEvent.getEvent().getFaultFields().getAlarmAdditionalInformation().getNetworkId();
+
ArrayList<Integer> counts = new ArrayList<>();
- counts.add(faultEvent.getEvent().getFaultFields().getAlarmAdditionalInformation().getCollisions());
- counts.add(faultEvent.getEvent().getFaultFields().getAlarmAdditionalInformation().getConfusions());
+ counts.add(faultEvent.getEvent().getFaultFields().getEventCategory().contains("Collision")?1:0);
+ counts.add(faultEvent.getEvent().getFaultFields().getEventCategory().contains("Confusion")?1:0);
collisionConfusionMap.put(cellId, counts);
}
FaultNotificationtoClusterMapping faultNotificationtoClusterMapping = clusterUtils
.getClustersForFmNotification(cellIds, clusterDetails);
-
faultNotificationtoClusterMapping.setCollisionConfusionMap(collisionConfusionMap);
+
// matching cells
if (faultNotificationtoClusterMapping.getCellsinCluster() != null
&& !faultNotificationtoClusterMapping.getCellsinCluster().isEmpty()) {
} catch (ConfigDbNotFoundException e) {
log.error("Config DB Exception {}", e);
}
-
}
// unmatched new cells
if (faultNotificationtoClusterMapping.getNewCells() != null
&& !faultNotificationtoClusterMapping.getNewCells().isEmpty()) {
- handleUnmatchedFmCells(faultNotificationtoClusterMapping, networkId);
-
+ handleUnmatchedFmCells(faultNotificationtoClusterMapping, networkId);
}
return true;
* ============LICENSE_START=======================================================
* son-handler
* ================================================================================
- * Copyright (C) 2019 Wipro Limited.
+ * Copyright (C) 2019-2021 Wipro Limited.
* ==============================================================================
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@Override
public String toString() {
return "FaultFields [faultFieldsVersion=" + faultFieldsVersion + ", alarmCondition=" + alarmCondition
- + ", eventSourceType=" + eventSourceType + ", specificProblem=" + specificProblem + ", eventSeverity="
+ + ", eventSourceType=" + eventSourceType + ", eventCategory=" + eventCategory + ", specificProblem=" + specificProblem + ", eventSeverity="
+ eventSeverity + ", vfStatus=" + vfStatus + ", alarmAdditionalInformation="
+ alarmAdditionalInformation + "]";
}
private double faultFieldsVersion;
private String alarmCondition;
private String eventSourceType;
+ private String eventCategory;
private String specificProblem;
private String eventSeverity;
private String vfStatus;
this.eventSourceType = eventSourceType;
}
+ public String getEventCategory() {
+ return eventCategory;
+ }
+
+ public void setEventCategory(String eventCategory) {
+ this.eventCategory = eventCategory;
+ }
+
public String getSpecificProblem() {
return specificProblem;
}
"event":{
"commonEventHeader":{
"version":"4.0.1",
- "vesEventListenerVersion":"7.0.1",
+ "vesEventListenerVersion":"7.2",
"domain":"fault",
"eventName":"Fault_RansimAgent-Wipro_RanPCIProblem",
"eventId":"fault000001",
"faultFieldsVersion":"4.0",
"alarmCondition":"RanPciCollisionConfusionOccurred",
"eventSourceType":"other",
- "specificProblem":"Collision",
+ "specificProblem":"Chn0025",
"eventSeverity":"CRITICAL",
+ "eventCategory": "PCICollision",
"vfStatus":"Active",
"alarmAdditionalInformation":{
- "networkId":"NTWK005",
- "collisions":"2",
- "confusions":"0"
+ "networkId":"NTWK005"
}
}
}