X-Git-Url: https://osm.etsi.org/gitweb/?p=osm%2FIM.git;a=blobdiff_plain;f=models%2Faugments%2Fscaling.yang;h=6194d4a7deb797f4d7c5507a5e0e6ac7322eca4c;hp=69ff163a82e3b7b91fc1489232465446f77acdb1;hb=8c2165cf780ab3dfa69b5ef7d5874390ea30c557;hpb=7f410e9c22072883e207b9a8f9832ffdd7e80834;ds=sidebyside diff --git a/models/augments/scaling.yang b/models/augments/scaling.yang index 69ff163..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 { @@ -162,7 +166,83 @@ module scaling { } } + 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