Create SIM setting RestConf Commands 56/4256/1
authordemx8as6 <martin.skorupski@highstreet-technologies.com>
Mon, 29 Jun 2020 09:54:33 +0000 (11:54 +0200)
committerdemx8as6 <martin.skorupski@highstreet-technologies.com>
Mon, 29 Jun 2020 09:54:46 +0000 (11:54 +0200)
4 RFC8040 RESTCONF commands northbound of ODL were
created as templates for the NTS-Manager configurations.

IssueID: OAM-125
Change-Id: Ia73679f0f8c1206f1e1574ab3e509ec9164d3721
Signed-off-by: demx8as6 <martin.skorupski@highstreet-technologies.com>
data-model/tools/o1-controller-restconf-commands/.vscode/settings.json
data-model/tools/o1-controller-restconf-commands/nts-manager-devices-GET.rest [new file with mode: 0644]
data-model/tools/o1-controller-restconf-commands/nts-manager-devices-SET.rest [new file with mode: 0644]
data-model/tools/o1-controller-restconf-commands/nts-manager-notification-GET.rest [new file with mode: 0644]
data-model/tools/o1-controller-restconf-commands/nts-manager-notification-SET.rest [new file with mode: 0644]

index ce7dbb4..0c05ddf 100644 (file)
@@ -1,7 +1,19 @@
 {
   "rest-client.environmentVariables": {
     "local": {
-      "baseUrl": "http://localhost:8181",
+      "baseUrl": "http://10.20.11.118:8181",
+      "user": "admin",
+      "password": "admin",
+      "mountPoint": "ntsim_onf_core_model_1_4-0_51009",
+    },
+    "public": {
+      "baseUrl": "https://sdn-r-dev.open5g-test.com",
+      "user": "admin",
+      "password": "Kp8bJ4SXszM0WXlhak3eHlcse2gAw84vaoGGmJvUy2U",
+      "mountPoint": "ntsim_onf_core_model_1_4-0_51009",
+    },
+    "alex-ws": {
+      "baseUrl": "http://46.38.251.235:8181",
       "user": "admin",
       "password": "admin",
       "mountPoint": "ntsim_onf_core_model_1_4-0_51009",
diff --git a/data-model/tools/o1-controller-restconf-commands/nts-manager-devices-GET.rest b/data-model/tools/o1-controller-restconf-commands/nts-manager-devices-GET.rest
new file mode 100644 (file)
index 0000000..dcef7d1
--- /dev/null
@@ -0,0 +1,24 @@
+@node[1]=O-RAN-FH-NTS-Manager
+@node[2]=Core14-ONF-NTS-Manager
+@node[3]=Core12-ONF-NTS-Manager
+@node[4]=xran-FH-NTS-Manager
+
+### 
+GET {{baseUrl}}/rests/data/network-topology:network-topology/topology=topology-netconf/node={{node[1]}}/yang-ext:mount/network-topology-simulator:simulator-config
+Authorization: Basic {{user}} {{password}}
+Accept: application/yang-data+json
+
+### 
+GET {{baseUrl}}/rests/data/network-topology:network-topology/topology=topology-netconf/node={{node[2]}}/yang-ext:mount/network-topology-simulator:simulator-config
+Authorization: Basic {{user}} {{password}}
+Accept: application/yang-data+json
+
+### 
+GET {{baseUrl}}/rests/data/network-topology:network-topology/topology=topology-netconf/node={{node[3]}}/yang-ext:mount/network-topology-simulator:simulator-config
+Authorization: Basic {{user}} {{password}}
+Accept: application/yang-data+json
+
+###
+GET {{baseUrl}}/rests/data/network-topology:network-topology/topology=topology-netconf/node={{node[4]}}/yang-ext:mount/network-topology-simulator:simulator-config
+Authorization: Basic {{user}} {{password}}
+Accept: application/yang-data+json
diff --git a/data-model/tools/o1-controller-restconf-commands/nts-manager-devices-SET.rest b/data-model/tools/o1-controller-restconf-commands/nts-manager-devices-SET.rest
new file mode 100644 (file)
index 0000000..dc0ec87
--- /dev/null
@@ -0,0 +1,40 @@
+@node=O-RAN-FH-NTS-Manager
+#@node=Core14-ONF-NTS-Manager
+#@node=Core12-ONF-NTS-Manager
+#@node=xran-FH-NTS-Manager
+PUT {{baseUrl}}/rests/data/network-topology:network-topology/topology=topology-netconf/node={{node}}/yang-ext:mount/network-topology-simulator:simulator-config
+Authorization: Basic {{user}} {{password}}
+Accept: application/yang-data+json
+Content-Type: application/yang-data+json
+
+{
+  "network-topology-simulator:simulator-config": {
+    "ves-endpoint-details": {
+      "ves-endpoint-port": 8080,
+      "ves-endpoint-auth-method": "no-auth",
+      "ves-registration": false,
+      "ves-endpoint-ip": "10.20.11.118"
+    },
+    "netconf-call-home": false,
+    "simulated-devices": 0,
+    "mounted-devices": 0,
+    "controller-details": {
+      "controller-password": "admin",
+      "controller-ip": "10.20.11.118",
+      "netconf-call-home-port": 6666,
+      "controller-username": "admin",
+      "controller-port": 8181
+    },
+    "notification-config": {
+      "is-netconf-available": true,
+      "ves-heartbeat-period": 0,
+      "is-ves-available": false,
+      "fault-notification-delay-period": [
+        10,
+        40,
+        50,
+        60
+      ]
+    }
+  }
+}
\ No newline at end of file
diff --git a/data-model/tools/o1-controller-restconf-commands/nts-manager-notification-GET.rest b/data-model/tools/o1-controller-restconf-commands/nts-manager-notification-GET.rest
new file mode 100644 (file)
index 0000000..a8bba41
--- /dev/null
@@ -0,0 +1,7 @@
+#@node=O-RAN-FH-NTS-Manager
+#@node=Core14-ONF-NTS-Manager
+@node=Core12-ONF-NTS-Manager
+#@node=xran-FH-NTS-Manager
+GET {{baseUrl}}/rests/data/network-topology:network-topology/topology=topology-netconf/node={{node}}/yang-ext:mount/network-topology-simulator:simulator-config/notification-config
+Authorization: Basic {{user}} {{password}}
+Accept: application/yang-data+json
diff --git a/data-model/tools/o1-controller-restconf-commands/nts-manager-notification-SET.rest b/data-model/tools/o1-controller-restconf-commands/nts-manager-notification-SET.rest
new file mode 100644 (file)
index 0000000..2444868
--- /dev/null
@@ -0,0 +1,19 @@
+#@node=O-RAN-FH-NTS-Manager
+#@node=Core14-ONF-NTS-Manager
+@node=Core12-ONF-NTS-Manager
+#@node=xran-FH-NTS-Manager
+PUT {{baseUrl}}/rests/data/network-topology:network-topology/topology=topology-netconf/node={{node}}/yang-ext:mount/network-topology-simulator:simulator-config/notification-config
+Authorization: Basic {{user}} {{password}}
+Accept: application/yang-data+json
+Content-Type: application/yang-data+json
+
+{
+  "network-topology-simulator:notification-config": {
+    "is-netconf-available": true,
+    "ves-heartbeat-period": 0,
+    "is-ves-available": false,
+    "fault-notification-delay-period": [
+      60, 50, 40, 10
+    ]
+  }
+}