From bda75d73445c34d464be7d0f579e7680e2da6c9b Mon Sep 17 00:00:00 2001 From: Sebastian Rieger Date: Sat, 5 Dec 2015 22:10:30 +0100 Subject: [PATCH] - added support for new glance version in Cisco VIRL 1.0.0 --- create-arista-veos-image/create-arista-veos-image.sh | 4 +++- create-arista-veos-image/dynamic-subtype-vEOS.json | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/create-arista-veos-image/create-arista-veos-image.sh b/create-arista-veos-image/create-arista-veos-image.sh index b168009..de62c7a 100644 --- a/create-arista-veos-image/create-arista-veos-image.sh +++ b/create-arista-veos-image/create-arista-veos-image.sh @@ -9,6 +9,8 @@ # V1.2 added dynamic handling of device mapping of extacted partitions # V1.21 checking whether it safe to unmount working directories # V1.3 added support to delete existing image with the same name and generating the default nova flavor +# V1.31 added support for newer glance releases (e.g. kilo) used in VIRL 1.0.0 + # usage if [ ! $# -eq 3 ] ; then @@ -197,7 +199,7 @@ rm $VEOS_VMDK_BASENAME.raw echo echo "Importing image into glance..." echo "===========================================================" -glance image-create --container-format bare --disk-format qcow2 --is-public true --name $GLANCE_IMAGE_NAME \ +glance image-create --container-format bare --disk-format qcow2 --visibility public --name $GLANCE_IMAGE_NAME \ --file $TMP_NAME.qcow2 --property hw_disk_bus=ide --property serial=1 \ --property hw_vif_model=e1000 --property hw_cdrom_type=ide --property release="$GLANCE_IMAGE_RELEASE" --property subtype=IOSv --property config_disk_type=disk diff --git a/create-arista-veos-image/dynamic-subtype-vEOS.json b/create-arista-veos-image/dynamic-subtype-vEOS.json index 64bb030..b770705 100644 --- a/create-arista-veos-image/dynamic-subtype-vEOS.json +++ b/create-arista-veos-image/dynamic-subtype-vEOS.json @@ -18,7 +18,7 @@ "vnc_available": false, "interface_management": "Management1", "interface_range": 7, - "baseline_flavor": "vEOS.small" + "baseline_flavor": "vEOS.medium" } ] } \ No newline at end of file