X-Git-Url: https://osm.etsi.org/gitweb/?a=blobdiff_plain;f=models%2Fplugins%2Fyang%2Fvnfr.yang;h=c0a6237a3a95b0f13dd36dcec900af515b9837c2;hb=af804410b4063fe28658e38d23e3108b1d88a799;hp=cd9541c8cd7b1d4755d9e433a5d355d200d56233;hpb=168899eaf1e5b8b75110d1a4f2b9d739644370e4;p=osm%2FSO.git diff --git a/models/plugins/yang/vnfr.yang b/models/plugins/yang/vnfr.yang index cd9541c8..c0a6237a 100644 --- a/models/plugins/yang/vnfr.yang +++ b/models/plugins/yang/vnfr.yang @@ -199,11 +199,17 @@ module vnfr type uint32; } - leaf vnfd-ref { - description "Reference to VNFD"; - type leafref { - path "/vnfd:vnfd-catalog/vnfd:vnfd/vnfd:id"; - } + leaf uptime { + description + "Active period of this Virtual Network Function. + Uptime is expressed in seconds"; + + type uint32; + } + + container vnfd { + description "VNF descriptor used to instantiate this VNF"; + uses vnfd:vnfd-descriptor; } // Use parameters provided here to configure this VNF @@ -294,9 +300,7 @@ module vnfr leaf vdu-id-ref { type leafref { - path "/vnfd:vnfd-catalog/vnfd:vnfd" - + "[vnfd:id = current()/../../vnfr:vnfd-ref]" - + "/vnfd:vdu/vnfd:id"; + path "../../vnfd/vdu/id"; } } @@ -336,6 +340,24 @@ module vnfr uses manotypes:hypervisor-epa; uses manotypes:host-epa; + uses manotypes:supplemental-boot-data; + + list volumes { + key "name"; + + leaf name { + description "Name of the disk-volumes, e.g. vda, vdb etc"; + type string; + } + + leaf volume-id { + description "VIM assigned volume id"; + type string; + } + + uses manotypes:volume-info; + } + list alarms { description "A list of the alarms that have been created for this VDU";