From 7aa6d16dff7103b7b83fbd3261c2caa374b7810e Mon Sep 17 00:00:00 2001 From: "Tait,Trevor(rt0435)" Date: Thu, 31 Jan 2019 08:44:51 -0500 Subject: SDNC Context Builder : L2 Fabric Retrieval - pnf Code to retrieve pnf data from SDNC. Includes new URI to GET port-mirror-configurations. Issue-ID: LOG-778 Change-Id: I0264e544d1f08f660ee783b626438a1259617a69 Signed-off-by: Tait,Trevor(rt0435) --- config/application.properties | 1 + config/portMirrorConfigurations.spec | 32 ++++++++++++++++++++++++++++++++ config/providedConfigurations.spec | 25 +++++++++++++++++++++++++ 3 files changed, 58 insertions(+) create mode 100644 config/portMirrorConfigurations.spec create mode 100644 config/providedConfigurations.spec (limited to 'config') diff --git a/config/application.properties b/config/application.properties index c454c01..87eca62 100644 --- a/config/application.properties +++ b/config/application.properties @@ -27,6 +27,7 @@ sdnc.password=OBF:1ks51l8d1o3i1pcc1r2r1e211r391kls1pyj1z7u1njf1lx51go21hnj1y0k1m sdnc.connectionTimeout=5000 sdnc.readTimeout=1000 sdnc.genericResourcePath=/restconf/config/GENERIC-RESOURCE-API:services/service/{0} +sdnc.portMirrorResourcePath=/restconf/config/GENERIC-RESOURCE-API:port-mirror-configurations/port-mirror-configuration/{0}/configuration-data/configuration-operation-information/port-mirror-configuration-request-input sdnc.vnfPath=/restconf/config/VNF-API:vnfs/vnf-list/{0} #Servlet context parameters diff --git a/config/portMirrorConfigurations.spec b/config/portMirrorConfigurations.spec new file mode 100644 index 0000000..c570c59 --- /dev/null +++ b/config/portMirrorConfigurations.spec @@ -0,0 +1,32 @@ +[ + // Use https://jolt-demo.appspot.com/#inception to develop/test + // any changes to this file + + { + // This section extracts pnf-information from the GENERIC-RESOURCES-API + // response from sdnc + "operation": "shift", + "spec": { + "port-mirror-configuration-request-input": { + "source-port": { + "*": { + "pnf-information": { + "pnf-name": "pnfList[0].name", + "#nfType": "pnfList[0].attributeList[0].name", + "pnf-type": "pnfList[0].attributeList[0].value" + } + } + }, + "dest-port": { + "*": { + "pnf-information": { + "pnf-name": "pnfList[1].name", + "#nfType": "pnfList[1].attributeList[0].name", + "pnf-type": "pnfList[1].attributeList[0].value" + } + } + } + } + } + } + ] diff --git a/config/providedConfigurations.spec b/config/providedConfigurations.spec new file mode 100644 index 0000000..6af573f --- /dev/null +++ b/config/providedConfigurations.spec @@ -0,0 +1,25 @@ +[ + // Use https://jolt-demo.appspot.com/#inception to develop/test + // any changes to this file + + { + // This section extracts configuration-id from the GENERIC-RESOURCES-API + // response from sdnc + "operation": "shift", + "spec": { + "service": { + "*": { + "service-data": { + "provided-configurations": { + "provided-configuration": { + "*": { + "configuration-id": "configuration-id[&1]" + } + } + } + } + } + } + } + } + ] \ No newline at end of file -- cgit 1.2.3-korg