From 3eac02bcab3641fef087df8f40d5a3df89fbf15c Mon Sep 17 00:00:00 2001 From: demx8as6 Date: Mon, 29 Jun 2020 11:54:33 +0200 Subject: [PATCH] Create SIM setting RestConf Commands 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 --- .../.vscode/settings.json | 14 +++++++- .../nts-manager-devices-GET.rest | 24 +++++++++++++ .../nts-manager-devices-SET.rest | 40 ++++++++++++++++++++++ .../nts-manager-notification-GET.rest | 7 ++++ .../nts-manager-notification-SET.rest | 19 ++++++++++ 5 files changed, 103 insertions(+), 1 deletion(-) create mode 100644 data-model/tools/o1-controller-restconf-commands/nts-manager-devices-GET.rest create mode 100644 data-model/tools/o1-controller-restconf-commands/nts-manager-devices-SET.rest create mode 100644 data-model/tools/o1-controller-restconf-commands/nts-manager-notification-GET.rest create mode 100644 data-model/tools/o1-controller-restconf-commands/nts-manager-notification-SET.rest diff --git a/data-model/tools/o1-controller-restconf-commands/.vscode/settings.json b/data-model/tools/o1-controller-restconf-commands/.vscode/settings.json index ce7dbb4..0c05ddf 100644 --- a/data-model/tools/o1-controller-restconf-commands/.vscode/settings.json +++ b/data-model/tools/o1-controller-restconf-commands/.vscode/settings.json @@ -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 index 0000000..dcef7d1 --- /dev/null +++ b/data-model/tools/o1-controller-restconf-commands/nts-manager-devices-GET.rest @@ -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 index 0000000..dc0ec87 --- /dev/null +++ b/data-model/tools/o1-controller-restconf-commands/nts-manager-devices-SET.rest @@ -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 index 0000000..a8bba41 --- /dev/null +++ b/data-model/tools/o1-controller-restconf-commands/nts-manager-notification-GET.rest @@ -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 index 0000000..2444868 --- /dev/null +++ b/data-model/tools/o1-controller-restconf-commands/nts-manager-notification-SET.rest @@ -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 + ] + } +} -- 2.16.6