<groupId>org.onap.dcaegen2.services.son-handler</groupId>
<artifactId>son-handler</artifactId>
<name>dcaegen2-services-son-handler</name>
- <version>2.0.3-SNAPSHOT</version>
+ <version>2.0.4-SNAPSHOT</version>
<!--parent> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-parent</artifactId>
<version>2.0.4.RELEASE</version> </parent -->
log.info("Policy Notification: {}", notification);
Boolean result = policyDmaapClient.sendNotificationToPolicy(notification);
log.info("send notification to policy result {} ", result);
- // getting policy response
- policyDmaapClient.handlePolicyResponse(requestId);
- log.info("handled policy response");
} catch (Exception e) {
log.error("Exception in sending Anr update to policy ", e);
}
private void handlePolicyNotification(String msg) {
+ log.info("Message received from policy: " +msg);
PciUpdateRepository pciUpdateRepository = BeanUtil.getBean(PciUpdateRepository.class);
- Configuration configuration = Configuration.getInstance();
+ Configuration configuration = Configuration.getInstance();
try {
ObjectMapper mapper = new ObjectMapper();
PolicyNotification policyResponse = mapper.readValue(msg, PolicyNotification.class);
String statusToString = Integer.toString(status);
log.info("Handled response from policy, status code {}", statusToString);
}
- } catch (IOException e) {
- log.info("caught io exception while fetching policy response");
+ } catch (Exception e) {
+ log.info("caught exception while fetching policy response:" + e);
}
}
aai.put("generic-vnf.is-closed-loop-disabled", "false");
aai.put("generic-vnf.prov-status", "ACTIVE");
aai.put("pnf.pnf-name", pnfName);
+ this.policyName = "PCI";
+ this.policyVersion = "1.0.2";
}
public long getClosedLoopAlarmStart() {
###############################################################################
major=2
minor=0
-patch=3
+patch=4
base_version=${major}.${minor}.${patch}
release_version=${base_version}
snapshot_version=${base_version}-SNAPSHOT