diff options
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 |