From: demx8as6 Date: Wed, 1 Jul 2020 10:08:46 +0000 (+0200) Subject: Create and Delete Mountpoint per RestConf X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=commitdiff_plain;ds=sidebyside;h=31f00bce30b090e76ab1f61f3c29cf4ae7d8ebd2;p=scp%2Foam%2Fmodeling.git Create and Delete Mountpoint per RestConf New RestConf requests are added for MountPoint creation and deletion for Biermann-RestConf and RFC8040. IssueID: OAM-126 Change-Id: I11a0f9bdd1b15a613bc903bf7f4325d6beb10ed7 Signed-off-by: demx8as6 --- diff --git a/data-model/tools/o1-controller-restconf-commands/create-mount-point-biermann.rest b/data-model/tools/o1-controller-restconf-commands/create-mount-point-biermann.rest new file mode 100644 index 0000000..147e44d --- /dev/null +++ b/data-model/tools/o1-controller-restconf-commands/create-mount-point-biermann.rest @@ -0,0 +1,43 @@ +################################################################################ +# Copyright 2020 highstreet technologies GmbH and others +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +################################################################################ +@node=my-new-mount-point-2 +PUT {{baseUrl}}/rests/data/network-topology:network-topology/topology=topology-netconf/node={{node}} +Authorization: Basic {{user}} {{password}} +Accept: application/json +Content-Type: application/json + +{ + "network-topology:node": [ + { + "node-id": "{{node}}", + "netconf-node-topology:host": "127.0.0.1", + "netconf-node-topology:port": 830, + "netconf-node-topology:password": "netconf", + "netconf-node-topology:username": "netconf", + "netconf-node-topology:sleep-factor": 1.5, + "netconf-node-topology:tcp-only": false, + "netconf-node-topology:reconnect-on-changed-schema": true, + "netconf-node-topology:default-request-timeout-millis": 60000, + "netconf-node-topology:connection-timeout-millis": 20000, + "netconf-node-topology:max-connection-attempts": 100, + "netconf-node-topology:between-attempts-timeout-millis": 2000, + "netconf-node-topology:keepalive-delay": 120, + "netconf-node-topology:concurrent-rpc-limit": 0, + "netconf-node-topology:actor-response-wait-time": 5 + } + ] +} + diff --git a/data-model/tools/o1-controller-restconf-commands/create-mount-point-rfc8040.rest b/data-model/tools/o1-controller-restconf-commands/create-mount-point-rfc8040.rest new file mode 100644 index 0000000..4c2335d --- /dev/null +++ b/data-model/tools/o1-controller-restconf-commands/create-mount-point-rfc8040.rest @@ -0,0 +1,42 @@ +################################################################################ +# Copyright 2020 highstreet technologies GmbH and others +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +################################################################################ +@node=my-new-mount-point-2 +PUT {{baseUrl}}/rests/data/network-topology:network-topology/topology=topology-netconf/node={{node}} +Authorization: Basic {{user}} {{password}} +Accept: application/yang-data+json +Content-Type: application/yang-data+json + +{ + "network-topology:node": [ + { + "node-id": "{{node}}", + "host": "127.0.0.1", + "port": 830, + "password": "netconf", + "username": "netconf", + "sleep-factor": 1.5, + "tcp-only": false, + "reconnect-on-changed-schema": true, + "default-request-timeout-millis": 60000, + "connection-timeout-millis": 20000, + "max-connection-attempts": 100, + "between-attempts-timeout-millis": 2000, + "keepalive-delay": 120, + "concurrent-rpc-limit": 0, + "actor-response-wait-time": 5 + } + ] +} \ No newline at end of file diff --git a/data-model/tools/o1-controller-restconf-commands/delete-mount-point-biermann.rest b/data-model/tools/o1-controller-restconf-commands/delete-mount-point-biermann.rest new file mode 100644 index 0000000..7ed4aba --- /dev/null +++ b/data-model/tools/o1-controller-restconf-commands/delete-mount-point-biermann.rest @@ -0,0 +1,19 @@ +################################################################################ +# Copyright 2020 highstreet technologies GmbH and others +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +################################################################################ +@node=my-new-mount-point-2 +DELETE {{baseUrl}}/restconf/config/network-topology:network-topology/topology/topology-netconf/node/{{node}} +Authorization: Basic {{user}} {{password}} +Accept: application/json diff --git a/data-model/tools/o1-controller-restconf-commands/delete-mount-point-rfc8040.rest b/data-model/tools/o1-controller-restconf-commands/delete-mount-point-rfc8040.rest new file mode 100644 index 0000000..9baa7ab --- /dev/null +++ b/data-model/tools/o1-controller-restconf-commands/delete-mount-point-rfc8040.rest @@ -0,0 +1,19 @@ +################################################################################ +# Copyright 2020 highstreet technologies GmbH and others +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +################################################################################ +@node=my-new-mount-point-2 +DELETE {{baseUrl}}/rests/data/network-topology:network-topology/topology=topology-netconf/node={{node}} +Authorization: Basic {{user}} {{password}} +Accept: application/yang-data+json