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:kdu";
23 import etsi-nfv-vnfd {
27 import common-augments {
31 grouping extended-ext-cpd {
32 leaf k8s-cluster-net {
34 "Reference to the K8s cluster network
35 to which CPs instantiated from this external CP
36 Descriptor (CPD) connect.";
38 path "/vnfd:vnfd/kdu:k8s-cluster/kdu:nets/kdu:id";
43 grouping extended-kdu-configuration {
44 list kdu-configuration {
48 "Internal identifier for the KDU configuration";
51 uses common:vnfc-configuration;
52 uses common:vdu-config-access;
54 leaf-list blacklist-config-primitive {
56 "List of blacklisted config primitives from the list of
57 default kdu config primitives";
67 grouping extended-kdu-model {
73 "Internal identifier for the KDU model";
79 "Indicates the KDU model, either as a helm-chart or as a juju-bundle.";
87 leaf kdu-model-locator {
89 "Indicates the KDU model location, either as a path to a folder in the
90 package or as a URL where to fetch the model.";
97 grouping extended-kdu {
100 "List of K8s Deployment Units";
105 "Unique name for the KDU";
111 "Description of the KDU.";
116 container k8s-cluster {
119 "List of supported K8s versions.
120 The cluster where the KDUs will be deployed will have to match
121 one of these versions.";
128 "List of supported CNI plugins.
129 The cluster where the KDUs will be deployed will have to use
130 one of these CNI plugins.";
141 "List of required networks in the K8s cluster.
142 The cluster where the KDUs will be deployed will have to use
143 one of these CNI plugins.";
149 "Internal identifier for the K8s cluster network in this VNF";
156 augment "/vnfd:vnfd" {
158 uses extended-kdu-configuration;
159 uses extended-kdu-model;
162 augment "/vnfd:vnfd/vnfd:ext-cpd/vnfd:cp-connection" {
163 uses extended-ext-cpd;