diff options
author | Tait,Trevor(rt0435) <rtait@amdocs.com> | 2019-01-31 08:44:51 -0500 |
---|---|---|
committer | Tait,Trevor(rt0435) <rtait@amdocs.com> | 2019-01-31 08:45:12 -0500 |
commit | 7aa6d16dff7103b7b83fbd3261c2caa374b7810e (patch) | |
tree | d5c0bbbef0816d77983c67c206192c2403d8c83f /config | |
parent | 5b6272525b9cd876191104d4c1e64a91cace1c74 (diff) |
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) <rtait@amdocs.com>
Diffstat (limited to 'config')
-rw-r--r-- | config/application.properties | 1 | ||||
-rw-r--r-- | config/portMirrorConfigurations.spec | 32 | ||||
-rw-r--r-- | config/providedConfigurations.spec | 25 |
3 files changed, 58 insertions, 0 deletions
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 |