Browse Source

- added support for new glance version in Cisco VIRL 1.0.0

master
Sebastian Rieger 9 years ago
parent
commit
bda75d7344
  1. 4
      create-arista-veos-image/create-arista-veos-image.sh
  2. 2
      create-arista-veos-image/dynamic-subtype-vEOS.json

4
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.2 added dynamic handling of device mapping of extacted partitions
# V1.21 checking whether it safe to unmount working directories # 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.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 # usage
if [ ! $# -eq 3 ] ; then if [ ! $# -eq 3 ] ; then
@ -197,7 +199,7 @@ rm $VEOS_VMDK_BASENAME.raw
echo echo
echo "Importing image into glance..." echo "Importing image into glance..."
echo "===========================================================" 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 \ --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 --property hw_vif_model=e1000 --property hw_cdrom_type=ide --property release="$GLANCE_IMAGE_RELEASE" --property subtype=IOSv --property config_disk_type=disk

2
create-arista-veos-image/dynamic-subtype-vEOS.json

@ -18,7 +18,7 @@
"vnc_available": false, "vnc_available": false,
"interface_management": "Management1", "interface_management": "Management1",
"interface_range": 7, "interface_range": 7,
"baseline_flavor": "vEOS.small"
"baseline_flavor": "vEOS.medium"
} }
] ]
} }
Loading…
Cancel
Save