From: garciadeblas Date: Tue, 5 Dec 2017 11:30:17 +0000 (+0100) Subject: Feature 5649: allow alternative images for specific VIMs in VNFD X-Git-Tag: v3.0.3~5^2 X-Git-Url: https://osm.etsi.org/gitweb/?p=osm%2FIM.git;a=commitdiff_plain;h=e304a4dfc53b76d714238e42a52f45422d478ae0;ds=sidebyside Feature 5649: allow alternative images for specific VIMs in VNFD Change-Id: Iba983151f8f9e73bd740fea2e0636cb0bf53e9f4 Signed-off-by: garciadeblas --- diff --git a/models/yang/mano-types.yang b/models/yang/mano-types.yang index 8950c7a..ce51c70 100644 --- a/models/yang/mano-types.yang +++ b/models/yang/mano-types.yang @@ -202,6 +202,7 @@ module mano-types the same name as entered here. "; type string; + mandatory "true"; } leaf image-checksum { diff --git a/models/yang/vnfd-base.yang b/models/yang/vnfd-base.yang index 5e8d018..8e4333a 100644 --- a/models/yang/vnfd-base.yang +++ b/models/yang/vnfd-base.yang @@ -391,6 +391,25 @@ module vnfd-base uses manotypes:image-properties; + list alternative-images { + key "vim-type"; + description + "List of alternative images per VIM type. + Different images can be used for specific types of VIMs instead + of the default image. This allows deployments in sites where the + image identifier in the VIM is given by the VIM provider and + cannot be modified. + If an alternative image is specified for a VIM type, it will prevail + over the default image"; + + leaf vim-type { + description "VIM type: openvim, openstack, vmware, aws, etc."; + type string; + } + + uses manotypes:image-properties; + } + container vdu-configuration { uses manotypes:vca-configuration; }