aboutsummaryrefslogtreecommitdiffstats
path: root/examples/examples-onap-vcpe/src/main/resources/logic/definitive/ControlLoopLogTask.js
diff options
context:
space:
mode:
authorliamfallon <liam.fallon@est.tech>2020-03-10 21:09:28 +0000
committerliamfallon <liam.fallon@est.tech>2020-03-11 15:41:13 +0000
commit938108832179d5ca9b28e5cb981ce5602ca59344 (patch)
tree0bdb6b0c3d0b42b42ca8805451c190b707133bfe /examples/examples-onap-vcpe/src/main/resources/logic/definitive/ControlLoopLogTask.js
parent4eb64b73443620c8588ee48b54d225326ff4550e (diff)
Adapt vCPE example for Rhino Javascript
Minor changes to Javascript source for execution under the Rhino script engine. Issue-ID: POLICY-2106 Change-Id: Ib7e30ce0067a11ea1bb3ca8d197c796dba9ea091 Signed-off-by: liamfallon <liam.fallon@est.tech>
Diffstat (limited to 'examples/examples-onap-vcpe/src/main/resources/logic/definitive/ControlLoopLogTask.js')
-rw-r--r--examples/examples-onap-vcpe/src/main/resources/logic/definitive/ControlLoopLogTask.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/examples/examples-onap-vcpe/src/main/resources/logic/definitive/ControlLoopLogTask.js b/examples/examples-onap-vcpe/src/main/resources/logic/definitive/ControlLoopLogTask.js
index a5a692cbc..3e2771a74 100644
--- a/examples/examples-onap-vcpe/src/main/resources/logic/definitive/ControlLoopLogTask.js
+++ b/examples/examples-onap-vcpe/src/main/resources/logic/definitive/ControlLoopLogTask.js
@@ -63,6 +63,7 @@ clNotification.getAai().put("generic-vnf.orchestration-status", aaiInfo.get("
clNotification.getAai().put("generic-vnf.vnf-type", aaiInfo.get("genericVnfVnfType"));
clNotification.getAai().put("generic-vnf.in-maint", aaiInfo.get("genericVnfInMaint"));
clNotification.getAai().put("generic-vnf.service-id", aaiInfo.get("genericVnfServiceId"));
+
if(vnfID != null) {
clNotification.getAai().put("generic-vnf.vnf-id", aaiInfo.get("genericVnfVnfId"));
}
@@ -70,4 +71,4 @@ executor.outFields.put("VirtualControlLoopNotification", clNotification);
executor.logger.info(executor.outFields);
-var returnValue = executor.isTrue;
+true;