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() {