1 # Copyright 2018 Huawei Technologies Co., Ltd.
\r
3 # Licensed under the Apache License, Version 2.0 (the "License");
\r
4 # you may not use this file except in compliance with the License.
\r
5 # You may obtain a copy of the License at
\r
7 # http://www.apache.org/licenses/LICENSE-2.0
\r
9 # Unless required by applicable law or agreed to in writing, software
\r
10 # distributed under the License is distributed on an "AS IS" BASIS,
\r
11 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
\r
12 # See the License for the specific language governing permissions and
\r
13 # limitations under the License.
\r
15 open_cli_schema_version: 1.0
\r
16 name: logic-link-create
\r
17 description: Create a logic-link
\r
20 product: onap-beijing
\r
22 author: ONAP CLI Team onap-discuss@lists.onap.org
\r
26 description: logic-link-name
\r
32 description: link-type
\r
35 long_option: link-type
\r
38 description: speed-value
\r
41 long_option: speed-value
\r
44 description: speed-units
\r
47 long_option: speed-units
\r
50 description: Used to indicate whether or not this object is in maintenance mode (maintenance mode = true)
\r
53 long_option: in-maint
\r
56 description: Prov Status of this device (not under canopi control) Valid values [PREPROV/NVTPROV/PROV]
\r
59 long_option: prov-status
\r
62 description: link-role
\r
65 long_option: link-role
\r
68 description: link-id
\r
71 long_option: link-id
\r
73 - name: relationship
\r
74 description: relationship
\r
77 long_option: relationship
\r
84 uri: /aai/v11/network/logic-links/logic-link/${link-name}
\r
87 remove_empty_node: true
\r
88 body: '{"link-name": "${link-name}" ,"link-type": "${link-type}","speed-value": "${speed-value}","speed-units": "${speed-units}","in-maint": "${in-maint}","prov-status": "${prov-status}","link-role": "${link-role}","link-id": "${link-id}","relationship-list": ["${relationship}"]}'
\r