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.
20 namespace "urn:etsi:osm:yang:augments:scaling";
23 import etsi-nfv-vnfd {
27 import common-augments {
35 grouping extended-scaling {
42 "Name of the scaling policy";
49 type common:scaling-policy-type;
54 "Specifies if the scaling policy can be applied";
59 leaf scale-in-operation-type {
61 "Operation to be applied to check between scaling criterias to
62 check if the scale in threshold condition has been met.
64 type common:scaling-criteria-operation;
68 leaf scale-out-operation-type {
70 "Operation to be applied to check between scaling criterias to
71 check if the scale out threshold condition has been met.
73 type common:scaling-criteria-operation;
79 "The duration for which the criteria must hold true";
86 "The duration after a scaling-in/scaling-out action has been
87 triggered, for which there will be no further optional";
92 list scaling-criteria {
94 "list of conditions to be met for generating scaling
102 leaf scale-in-threshold {
104 "Value below which scale-in requests are generated";
110 leaf scale-in-relational-operation {
112 "The relational operator used to compare the monitoring param
113 against the scale-in-threshold.";
114 type common:relational-operation-type;
118 leaf scale-out-threshold {
120 "Value above which scale-out requests are generated";
126 leaf scale-out-relational-operation {
128 "The relational operator used to compare the monitoring param
129 against the scale-out-threshold.";
130 type common:relational-operation-type;
134 leaf vnf-monitoring-param-ref {
136 "Reference to the VNF level monitoring parameter
139 path "/vnfd:vnfd/vnfd:df/vnfd:monitoring-parameter/vnfd:id";
145 list scaling-config-action {
147 "List of scaling config actions";
153 type common:scaling-trigger;
156 leaf vnf-config-primitive-name-ref {
158 "Reference to the VNF config primitive";
160 path "/vnfd:vnfd/day1-2:vnf-configuration/day1-2:config-primitive/day1-2:name";
166 augment "/vnfd:vnfd/vnfd:df/vnfd:scaling-aspect" {
167 uses extended-scaling;