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>
99 container k8s-cluster {
102 "List of supported K8s versions.
103 The cluster where the KDUs will be deployed will have to match
104 one of these versions.";
111 "List of supported CNI plugins.
112 The cluster where the KDUs will be deployed will have to use
113 one of these CNI plugins.";
124 "List of required networks in the K8s cluster.
125 The cluster where the KDUs will be deployed will have to use
126 one of these CNI plugins.";
132 "Internal identifier for the K8s cluster network in this VNF";
140 "List of Kubernetes services exposed by the KDU.
141 If empty, all services are assumed to be exposed in the CP associated to the first network
142 in k8s-cluster.nets.";
146 description "Name of the Kubernetes service exposed by he KDU model";
152 "Flag to indicate that this Kubernetes service is a mgmt service
153 to be used for KDU configuration. Defaults to false (if no present).
154 All services with mgmt-service set to true will be passed to the execution
155 environment in charge of the KDU configuration.";
160 leaf external-connection-point-ref {
162 "String representing a leaf reference to the particular external connection point.
163 This field should match /etsi-nfv-vnfd:vnfd/etsi-nfv-vnfd:ext-cpd/etsi-nfv-vnfd:id
172 augment "/vnfd:vnfd" {
176 augment "/vnfd:vnfd/vnfd:ext-cpd/vnfd:cp-connection" {
177 uses extended-ext-cpd;