X-Git-Url: https://osm.etsi.org/gitweb/?p=osm%2FIM.git;a=blobdiff_plain;f=models%2Faugments%2Fkdu.yang;h=280008296fc4b9f0d0b9f12fa2330054ce069e90;hp=0cad70154b894f93230d441ba95b0ea03821047e;hb=refs%2Fchanges%2F99%2F10199%2F2;hpb=76f6a62b4cc15bc77cf1270d2b1630524fb2879f diff --git a/models/augments/kdu.yang b/models/augments/kdu.yang index 0cad701..2800082 100644 --- a/models/augments/kdu.yang +++ b/models/augments/kdu.yang @@ -41,13 +41,7 @@ module kdu { } grouping extended-kdu-configuration { - list kdu-configuration { - key "id"; - leaf id { - description - "Internal identifier for the KDU configuration"; - type string; - } + container kdu-configuration { uses common:vnfc-configuration; uses common:vdu-config-access; @@ -64,36 +58,6 @@ module kdu { } } - grouping extended-kdu-model { - list kdu-model { - key "id"; - - leaf id { - description - "Internal identifier for the KDU model"; - type string; - } - - leaf kdu-model-type { - description - "Indicates the KDU model, either as a helm-chart or as a juju-bundle."; - - type enumeration { - enum helm-chart; - enum juju-bundle; - } - } - - leaf kdu-model-locator { - description - "Indicates the KDU model location, either as a path to a folder in the - package or as a URL where to fetch the model."; - - type string; - } - } - } - grouping extended-kdu { list kdu { description @@ -111,6 +75,50 @@ module kdu { "Description of the KDU."; type string; } + + choice kdu-model { + description + "Indicates the KDU model, either as a helm-chart or as a juju-bundle."; + + case helm-chart { + leaf helm-chart { + description + "Helm chart that models the KDU, in any of the following ways: + - / + - + - + - + "; + type string; + } + + leaf helm-version { + description + "Helm version to use for this helm-chart, v3 by default"; + type enumeration { + enum v2; + enum v3; + } + default v3; + } + } + + case juju-bundle { + leaf juju-bundle { + description + "Juju bundle that models the KDU, in any of the following ways: + - / + - + - + - + "; + type string; + } + } + } + + uses extended-kdu-configuration; + } container k8s-cluster { @@ -155,11 +163,9 @@ module kdu { augment "/vnfd:vnfd" { uses extended-kdu; - uses extended-kdu-configuration; - uses extended-kdu-model; } augment "/vnfd:vnfd/vnfd:ext-cpd/vnfd:cp-connection" { uses extended-ext-cpd; } -} \ No newline at end of file +}