From 1f31538fc81a5771b4fd66d8907742cf3880d143 Mon Sep 17 00:00:00 2001
From: garciadeblas <gerardo.garciadeblas@telefonica.com>
Date: Mon, 24 May 2021 16:17:44 +0200
Subject: [PATCH] Add alternative images for Azure in new packages

Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com>
---
 ipprofile_2vm_vnf/ipprofile_2vm_vnfd.yaml   | 8 ++++++++
 simple_2vm_vnf/simple_2vm_vnfd.yaml         | 8 ++++++++
 ubuntu_4ifaces_vnf/ubuntu_4ifaces_vnfd.yaml | 6 ++++++
 3 files changed, 22 insertions(+)

diff --git a/ipprofile_2vm_vnf/ipprofile_2vm_vnfd.yaml b/ipprofile_2vm_vnf/ipprofile_2vm_vnfd.yaml
index f40976af..791bf9cd 100644
--- a/ipprofile_2vm_vnf/ipprofile_2vm_vnfd.yaml
+++ b/ipprofile_2vm_vnf/ipprofile_2vm_vnfd.yaml
@@ -35,6 +35,10 @@ vnfd:
   - id: ubuntu20.04
     image: ubuntu20.04
     name: ubuntu20.04
+  - id: ubuntu20.04-azure
+    name: ubuntu20.04-azure
+    image: Canonical:UbuntuServer:20.04-LTS:latest
+    vim-type: azure
   vdu:
   - id: mgmtVM
     int-cpd:
@@ -53,6 +57,8 @@ vnfd:
           type: PARAVIRT
     name: mgmtVM
     sw-image-desc: ubuntu20.04
+    alternative-sw-image-desc:
+    - ubuntu20.04-azure
     virtual-compute-desc: mgmtVM-compute
     virtual-storage-desc:
     - mgmtVM-storage
@@ -67,6 +73,8 @@ vnfd:
           type: PARAVIRT
     name: dataVM
     sw-image-desc: ubuntu20.04
+    alternative-sw-image-desc:
+    - ubuntu20.04-azure
     virtual-compute-desc: dataVM-compute
     virtual-storage-desc:
     - dataVM-storage
diff --git a/simple_2vm_vnf/simple_2vm_vnfd.yaml b/simple_2vm_vnf/simple_2vm_vnfd.yaml
index 3e9c0291..be7c75b3 100755
--- a/simple_2vm_vnf/simple_2vm_vnfd.yaml
+++ b/simple_2vm_vnf/simple_2vm_vnfd.yaml
@@ -28,6 +28,10 @@ vnfd:
   - id: ubuntu20.04
     image: ubuntu20.04
     name: ubuntu20.04
+  - id: ubuntu20.04-azure
+    name: ubuntu20.04-azure
+    image: Canonical:UbuntuServer:20.04-LTS:latest
+    vim-type: azure
   vdu:
   - id: mgmtVM
     int-cpd:
@@ -46,6 +50,8 @@ vnfd:
           type: PARAVIRT
     name: mgmtVM
     sw-image-desc: ubuntu20.04
+    alternative-sw-image-desc:
+    - ubuntu20.04-azure
     virtual-compute-desc: mgmtVM-compute
     virtual-storage-desc:
     - mgmtVM-storage
@@ -60,6 +66,8 @@ vnfd:
           type: PARAVIRT
     name: dataVM
     sw-image-desc: ubuntu20.04
+    alternative-sw-image-desc:
+    - ubuntu20.04-azure
     virtual-compute-desc: dataVM-compute
     virtual-storage-desc:
     - dataVM-storage
diff --git a/ubuntu_4ifaces_vnf/ubuntu_4ifaces_vnfd.yaml b/ubuntu_4ifaces_vnf/ubuntu_4ifaces_vnfd.yaml
index 8ae9fb0c..8124eb8a 100644
--- a/ubuntu_4ifaces_vnf/ubuntu_4ifaces_vnfd.yaml
+++ b/ubuntu_4ifaces_vnf/ubuntu_4ifaces_vnfd.yaml
@@ -34,6 +34,10 @@ vnfd:
   - id: ubuntu20.04
     image: ubuntu20.04
     name: ubuntu20.04
+  - id: ubuntu20.04-azure
+    name: ubuntu20.04-azure
+    image: Canonical:UbuntuServer:20.04-LTS:latest
+    vim-type: azure
   vdu:
   - cloud-init-file: cloud-config.txt
     id: dataVM
@@ -64,6 +68,8 @@ vnfd:
           type: PARAVIRT
     name: dataVM
     sw-image-desc: ubuntu20.04
+    alternative-sw-image-desc:
+    - ubuntu20.04-azure
     virtual-compute-desc: dataVM-compute
     virtual-storage-desc:
     - dataVM-storage
-- 
GitLab