summaryrefslogtreecommitdiffstats
path: root/config/portMirrorConfigurations.spec
diff options
context:
space:
mode:
authorTait,Trevor(rt0435) <rtait@amdocs.com>2019-01-31 08:44:51 -0500
committerTait,Trevor(rt0435) <rtait@amdocs.com>2019-01-31 08:45:12 -0500
commit7aa6d16dff7103b7b83fbd3261c2caa374b7810e (patch)
treed5c0bbbef0816d77983c67c206192c2403d8c83f /config/portMirrorConfigurations.spec
parent5b6272525b9cd876191104d4c1e64a91cace1c74 (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/portMirrorConfigurations.spec')
-rw-r--r--config/portMirrorConfigurations.spec32
1 files changed, 32 insertions, 0 deletions
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"
+ }
+ }
+ }
+ }
+ }
+ }
+ ]