X-Git-Url: https://osm.etsi.org/gitweb/?p=osm%2FIM.git;a=blobdiff_plain;f=models%2Faugments%2Fscaling.yang;h=6194d4a7deb797f4d7c5507a5e0e6ac7322eca4c;hp=647edf1835d78d67d512443e77c96dc055896962;hb=8c2165cf780ab3dfa69b5ef7d5874390ea30c557;hpb=76f6a62b4cc15bc77cf1270d2b1630524fb2879f diff --git a/models/augments/scaling.yang b/models/augments/scaling.yang index 647edf1..6194d4a 100644 --- a/models/augments/scaling.yang +++ b/models/augments/scaling.yang @@ -32,6 +32,10 @@ module scaling { prefix day1-2; } + import kdu { + prefix kdu; + } + grouping extended-scaling { list scaling-policy { @@ -156,13 +160,89 @@ module scaling { description "Reference to the VNF config primitive"; type leafref { - path "/vnfd:vnfd/day1-2:vnf-configuration/day1-2:config-primitive/day1-2:name"; + path "/vnfd:vnfd/vnfd:df/vnfd:lcm-operations-configuration/vnfd:operate-vnf-op-config/day1-2:day1-2/day1-2:config-primitive/day1-2:name"; } } } } + grouping extended-kdu-resource-profile { + list kdu-resource-profile { + key "id"; + description + "The Kdu resource profile describes additional instantiation data for + a given KDU used in a deployment flavour."; + + leaf id { + type string; + } + + leaf min-number-of-instances { + type uint16; + default 1; + description + "Minimum number of instances of the KNFC based on this + KDU resource that is permitted to exist for this flavour."; + } + + leaf max-number-of-instances { + type uint16; + default 1; + must ". >= ../min-number-of-instances"; + } + + leaf resource-name { + type string; + description + "Name of the application of KDU"; + } + + leaf kdu-name { + type leafref { + path "/vnfd:vnfd/kdu:kdu/kdu:name"; + } + description + "Name of the KDU"; + } + } + } + + grouping extended-deltas { + list kdu-resource-delta { + key "id"; + description + "The number of KNFC instances based on particular + KDUs to be created or removed."; + + leaf id { + type leafref { + path "../../../../../kdu-resource-profile/id"; + } + description + "Uniquely identifies a KDU profile."; + } + + leaf number-of-instances { + type uint32 { + range "0..max"; + } + description + "Number of instances of KNFC based on this KDU to + deploy for an instantiation level or for a + scaling delta. Shall be zero or greater."; + } + } + } + + augment "/vnfd:vnfd/vnfd:df" { + uses extended-kdu-resource-profile; + } + augment "/vnfd:vnfd/vnfd:df/vnfd:scaling-aspect" { uses extended-scaling; } -} + + augment "/vnfd:vnfd/vnfd:df/vnfd:scaling-aspect/vnfd:aspect-delta-details/vnfd:deltas" { + uses extended-deltas; + } +} \ No newline at end of file