Update brg-topo-activate DG + vG setup
[sdnc/oam.git] / platform-logic / generic-resource-api / src / main / json / GENERIC-RESOURCE-API_get-tunnelxconn-ar.json
diff --git a/platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_get-tunnelxconn-ar.json b/platform-logic/generic-resource-api/src/main/json/GENERIC-RESOURCE-API_get-tunnelxconn-ar.json
new file mode 100644 (file)
index 0000000..a263325
--- /dev/null
@@ -0,0 +1,162 @@
+[
+  {
+    "id":"39f3ae67.7e9242",
+    "type":"dgstart",
+    "name":"DGSTART",
+    "outputs":1,
+    "x":186.66665649414062,
+    "y":111.66666412353516,
+    "z":"e0aca357.6f32a",
+    "wires":[
+      [
+        "a29ec69.164b938"
+      ]
+    ]
+  },
+  {
+    "id":"a29ec69.164b938",
+    "type":"service-logic",
+    "name":"GENERIC-RESOURCE-API ${project.version}",
+    "module":"GENERIC-RESOURCE-API",
+    "version":"${project.version}",
+    "comments":"",
+    "xml":"<service-logic xmlns='http://www.onap.org/sdnc/svclogic' xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' xsi:schemaLocation='http://www.onap.org/sdnc/svclogic ./svclogic.xsd' module='GENERIC-RESOURCE-API' version='${project.version}'>",
+    "outputs":1,
+    "x":282.90473556518555,
+    "y":172.61905479431152,
+    "z":"e0aca357.6f32a",
+    "wires":[
+      [
+        "4705cb34.a0c174"
+      ]
+    ]
+  },
+  {
+    "id":"4705cb34.a0c174",
+    "type":"method",
+    "name":"get-tunnelxconn-ar",
+    "xml":"<method rpc='get-tunnelxconn-ar' mode='sync'>\n",
+    "comments":"",
+    "outputs":1,
+    "x":303.82152938842773,
+    "y":241.1904535293579,
+    "z":"e0aca357.6f32a",
+    "wires":[
+      [
+        "7864ada9.710574"
+      ]
+    ]
+  },
+  {
+    "id":"7864ada9.710574",
+    "type":"block",
+    "name":"block : atomic",
+    "xml":"<block atomic=\"true\">",
+    "atomic":"true",
+    "comments":"",
+    "outputs":1,
+    "x":237.14284896850586,
+    "y":351.19045209884644,
+    "z":"e0aca357.6f32a",
+    "wires":[
+      [
+        "2c32d527.ae06da",
+        "9e578822.5550a8"
+      ]
+    ]
+  },
+  {
+    "id":"9e578822.5550a8",
+    "type":"for",
+    "name":"for tmp.tunnel-ar",
+    "xml":"<for index='tunnelidx' start='0' end='`$tmp.tunnel-ar.data.tunnelxconn-allotted-resources.tunnelxconn-allotted-resource_length`' >\n\n\n",
+    "comments":"",
+    "outputs":1,
+    "x":421.66666412353516,
+    "y":359.9999370574951,
+    "z":"e0aca357.6f32a",
+    "wires":[
+      [
+        "4655d18f.1efdc"
+      ]
+    ]
+  },
+  {
+    "id":"2c32d527.ae06da",
+    "type":"get-resource",
+    "name":"get-resource tunnelxconn-ar",
+    "xml":"<get-resource plugin='org.onap.ccsdk.sli.adaptors.resource.mdsal.ConfigResource' resource='GENERIC-RESOURCE-API' key='tunnelxconn-allotted-resources' pfx='tmp.tunnel-ar.data' >\n",
+    "comments":"",
+    "outputs":1,
+    "x":499.99998474121094,
+    "y":301.33330726623535,
+    "z":"e0aca357.6f32a",
+    "wires":[
+      [
+
+      ]
+    ]
+  },
+  {
+    "id":"4655d18f.1efdc",
+    "type":"switchNode",
+    "name":"switch consuming-service-instance-id match",
+    "xml":"<switch test='`$tmp.tunnel-ar.data.tunnelxconn-allotted-resources.tunnelxconn-allotted-resource[$tunnelidx].allotted-resource-data.tunnelxconn-topology.allotted-resource-identifiers.consuming-service-instance-id == $tmp.ar.consuming-service-instance-id`'>\n\n\n",
+    "comments":"",
+    "outputs":1,
+    "x":706.3333587646484,
+    "y":358.9999713897705,
+    "z":"e0aca357.6f32a",
+    "wires":[
+      [
+        "d430e328.d45e6"
+      ]
+    ]
+  },
+  {
+    "id":"d430e328.d45e6",
+    "type":"success",
+    "name":"true",
+    "xml":"<outcome value='true'>\n",
+    "comments":"",
+    "outputs":1,
+    "x":900.3333625793457,
+    "y":299.99995613098145,
+    "z":"e0aca357.6f32a",
+    "wires":[
+      [
+        "bbaf2c6f.a5b81"
+      ]
+    ]
+  },
+  {
+    "id":"bbaf2c6f.a5b81",
+    "type":"block",
+    "name":"block",
+    "xml":"<block>\n",
+    "atomic":"false",
+    "comments":"",
+    "outputs":1,
+    "x":1124.9999465942383,
+    "y":333.6666135787964,
+    "z":"e0aca357.6f32a",
+    "wires":[
+      [
+        "885aaec0.195b"
+      ]
+    ]
+  },
+  {
+    "id":"885aaec0.195b",
+    "type":"set",
+    "name":"set tmp.tunnelxconn-ar",
+    "xml":"<set>\n<parameter name='tmp.tunnelxconn-ar.' value='`$tmp.tunnel-ar.data.tunnelxconn-allotted-resources.tunnelxconn-allotted-resource[$tunnelidx].`' />\n",
+    "comments":"",
+    "x":1310.6668128967285,
+    "y":330.3332872390747,
+    "z":"e0aca357.6f32a",
+    "wires":[
+
+    ]
+  }
+]
\ No newline at end of file