summaryrefslogtreecommitdiffstats
path: root/config/portMirrorConfigurations.spec
diff options
context:
space:
mode:
authorTait,Trevor(rt0435) <rtait@amdocs.com>2019-01-31 10:58:16 -0500
committerTait,Trevor(rt0435) <rtait@amdocs.com>2019-02-04 14:21:26 -0500
commit769cb4c222fb6123bda3ae12abadd73cba7bdbb5 (patch)
treede57d516fea37140e7fbb23bd4130767b2bbf716 /config/portMirrorConfigurations.spec
parent7aa6d16dff7103b7b83fbd3261c2caa374b7810e (diff)
SDNC Context Builder : L2 Fabric Retrieval - pnf
Handle the case where there ONE PNF under source-port OR dest-port but not both. Issue-ID: LOG-778 Change-Id: Ia37bc98e51e9bc8548ac897af369c0e576f57308 Signed-off-by: Tait,Trevor(rt0435) <rtait@amdocs.com>
Diffstat (limited to 'config/portMirrorConfigurations.spec')
-rw-r--r--config/portMirrorConfigurations.spec60
1 files changed, 28 insertions, 32 deletions
diff --git a/config/portMirrorConfigurations.spec b/config/portMirrorConfigurations.spec
index c570c59..964b385 100644
--- a/config/portMirrorConfigurations.spec
+++ b/config/portMirrorConfigurations.spec
@@ -1,32 +1,28 @@
-[
- // 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"
- }
- }
- }
- }
- }
- }
- ]
+[
+ // 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"
+ }
+ }
+ }
+ }
+ }
+ ]