X-Git-Url: https://osm.etsi.org/gitweb/?a=blobdiff_plain;f=models%2Fplugins%2Fyang%2Fvnfr.yang;h=f228f1d7e71e3b6b0c867a0a519ed6e2d48de07c;hb=ee71ccf6da85650a8fbd2019293535082f017b78;hp=a4419ce6593d952a3a4d463f16fc680ff2b00bed;hpb=055eabb8205cf0707a139f394f0afb5dbfa7423c;p=osm%2FSO.git diff --git a/models/plugins/yang/vnfr.yang b/models/plugins/yang/vnfr.yang index a4419ce6..f228f1d7 100644 --- a/models/plugins/yang/vnfr.yang +++ b/models/plugins/yang/vnfr.yang @@ -191,7 +191,7 @@ module vnfr } leaf create-time { - description + description "Creation timestamp of this Virtual Network Function. The timestamp is expressed as seconds since unix epoch - 1970-01-01T00:00:00Z"; @@ -207,11 +207,9 @@ module vnfr type uint32; } - leaf vnfd-ref { - description "Reference to VNFD"; - type leafref { - path "/vnfd:vnfd-catalog/vnfd:vnfd/vnfd:id"; - } + container vnfd { + description "VNF descriptor used to instantiate this VNF"; + uses vnfd:vnfd-descriptor; } // Use parameters provided here to configure this VNF @@ -260,7 +258,7 @@ module vnfr uses vnfd:common-connection-point; leaf vlr-ref { - description + description "Reference to the VLR associated with this connection point"; type leafref { path "/vlr:vlr-catalog/vlr:vlr/vlr:id"; @@ -268,10 +266,16 @@ module vnfr } leaf ip-address { - description + description "IP address assigned to the external connection point"; type inet:ip-address; } + leaf mac-address { + description + "MAC address assigned to the external connection point"; + // type inet:mac-address; + type string; + } leaf connection-point-id { rwpb:field-inline "true"; rwpb:field-string-max 64; @@ -294,11 +298,18 @@ module vnfr type string; } + leaf unique-short-name { + description "Short Unique name of the VDU + This will be of the format NSR name-ShortnedString-VDUname + NSR name and VDU name shall be constrained to 10 characters"; + rwpb:field-inline "true"; + rwpb:field-string-max 64; + type string; + } + 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"; } } @@ -338,6 +349,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"; @@ -359,10 +388,16 @@ module vnfr uses vnfd:common-connection-point; leaf ip-address { - description - "IP address assigned to the external connection point"; + description + "IP address assigned to the internal connection point"; type inet:ip-address; } + leaf mac-address { + description + "MAC address assigned to the internal connection point"; + // type inet:mac-address; + type string; + } } list internal-interface {