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 grouping extended-ext-cpd {
28 leaf k8s-cluster-net {
30 "Reference to the K8s cluster network
31 to which CPs instantiated from this external CP
32 Descriptor (CPD) connect.";
34 path "/vnfd:vnfd/kdu:k8s-cluster/kdu:nets/kdu:id";
39 grouping extended-kdu {
42 "List of K8s Deployment Units";
47 "Unique name for the KDU";
53 "Description of the KDU.";
59 "Indicates the KDU model, either as a helm-chart or as a juju-bundle.";
64 "Helm chart that models the KDU, in any of the following ways:
65 - <helm-repo>/<helm-chart>
66 - <helm-chart folder under k8s_models folder in the package>
67 - <helm-chart tgz file (w/ or w/o extension) under k8s_models folder in the package>
68 - <URL_where_to_fetch_chart>
75 "Helm version to use for this helm-chart, v3 by default";
87 "Juju bundle that models the KDU, in any of the following ways:
88 - <juju-repo>/<juju-bundle>
89 - <juju-bundle folder under k8s_models folder in the package>
90 - <juju-bundle tgz file (w/ or w/o extension) under k8s_models folder in the package>
91 - <URL_where_to_fetch_juju_bundle>
100 "List of Kubernetes services exposed by the KDU.
101 If empty, all services are assumed to be exposed in the CP associated to the first network
102 in k8s-cluster.nets.";
106 description "Name of the Kubernetes service exposed by he KDU model";
110 leaf external-connection-point-ref {
112 "String representing a leaf reference to the particular external connection point.
113 This field should match /etsi-nfv-vnfd:vnfd/etsi-nfv-vnfd:ext-cpd/etsi-nfv-vnfd:id
121 container k8s-cluster {
124 "List of supported K8s versions.
125 The cluster where the KDUs will be deployed will have to match
126 one of these versions.";
133 "List of supported CNI plugins.
134 The cluster where the KDUs will be deployed will have to use
135 one of these CNI plugins.";
146 "List of required networks in the K8s cluster.
147 The cluster where the KDUs will be deployed will have to use
148 one of these CNI plugins.";
154 "Internal identifier for the K8s cluster network in this VNF";
161 augment "/vnfd:vnfd" {
165 augment "/vnfd:vnfd/vnfd:ext-cpd/vnfd:cp-connection" {
166 uses extended-ext-cpd;