2 Copyright 2020 Whitestack LLC
4 Licensed under the Apache License, Version 2.0 (the "License");
5 you may not use this file except in compliance with the License.
6 You may obtain a copy of the License at
8 http://www.apache.org/licenses/LICENSE-2.0
10 Unless required by applicable law or agreed to in writing, software
11 distributed under the License is distributed on an "AS IS" BASIS,
12 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
14 See the License for the specific language governing permissions and
15 limitations under the License.
18 module common-augments {
20 namespace "urn:etsi:osm:yang:augments";
23 typedef parameter-data-type {
31 grouping primitive-parameter-value {
34 "List of parameters to the configuration primitive.";
38 "Name of the parameter.";
44 "Data type associated with the value.";
45 type common:parameter-data-type;
50 "Value associated with the name.";
56 grouping primitive-parameter {
59 "Name of the parameter.";
65 "Data type associated with the name.";
66 type common:parameter-data-type;
71 "Is this field mandatory";
78 "The default value for this field";
84 "NSD parameter pool name to use for this parameter";
90 "The value should be dimmed by the UI.
91 Only applies to parameters with default values.";
98 "The value should be hidden by the UI.
99 Only applies to parameters with default values.";
105 grouping vnfc-relations {
108 "List of relations between elements in this descriptor.";
113 "Name of the relation.";
120 "List of two elements to be related.
121 Elements to be related are identified by a pair (id, endpoint).
122 The relation will relate (id1, endpoint1) to (id2, endpoint2).";
127 "A string, reference to the element id in the descriptor.
128 It could be a vnfd-id or a vdu-id in a VNFD,
129 or a nsd-id or member-vnf-index in a NSD.";
135 "Endpoint name defining the relation.";
142 grouping vnfc-metrics {
144 "Information about the VNF or VDU metrics";
147 "List of VNFC related metrics";
151 "Name of the metric, as defined in the Juju charm.";
157 grouping configuration-method {
158 choice config-method {
160 "Defines the configuration method for the VNF or VDU.";
163 "Use custom script for configuring the VNF or VDU.
164 This script is executed in the context of
165 Orchestrator (The same system and environment
170 "Script type - currently supported - Scripts confirming to Rift CA plugin";
180 "Configure the VNF or VDU through Juju.";
184 "Juju charm to use with the VNF or VDU.";
189 "Is this a proxy charm?";
198 grouping vdu-config-access {
200 container config-access {
203 "Indicates the way to access to the xNF or xDU for VCA configuration.
204 For the moment there is a single way (ssh-access).";
206 container ssh-access {
209 "If the xNF requires ssh and this parameter is set, SSH keys
210 will be injected so that VCA can configure the xNF or xDU via ssh.";
214 "whether ssh access is needed or not";
221 "Default user for ssh";
228 grouping vnfc-configuration {
230 "Common information in the descriptors for NS, VNF or VDU configuration.
231 Note: If the NS contains multiple instances of the
232 same VNF or VDU, each instance could have a different
235 uses common:configuration-method;
237 list config-primitive {
239 "List of config primitives supported by the
240 configuration agent for this VNF or VDU.";
245 "Name of the config primitive.";
251 "List of parameters to the config primitive.";
253 uses primitive-parameter;
256 leaf user-defined-script {
258 "A user defined script. If user defined script is defined,
259 the script will be executed using bash";
264 list initial-config-primitive {
266 "Initial set of configuration primitives.";
270 "Sequence number for the configuration primitive.";
274 choice primitive-type {
275 case primitive-definition {
278 "Name of the configuration primitive.";
282 uses primitive-parameter-value;
284 leaf user-defined-script {
286 "A user defined script.";
293 list terminate-config-primitive {
295 "Terminate set of configuration primitives.";
299 "Sequence number for the configuration primitive.";
304 "Name of the configuration primitive.";
308 uses primitive-parameter-value;
310 leaf user-defined-script {
312 "A user defined script.";
316 uses common:vnfc-metrics;