Simplify init-runonce boot command

openstack cli now supports --network foo rather than having to find the
network uuid. Thanks to mgoddard for the tip.

Change-Id: I9ce94a86c6950b81ef3ec70fe10ee565cc1f1171
This commit is contained in:
Paul Bourke 2018-04-13 17:17:04 +01:00
parent ed9854248f
commit e5a8481847

View File

@ -128,8 +128,6 @@ if ! openstack flavor list | grep -q m1.tiny; then
openstack flavor create --id 5 --ram 16384 --disk 160 --vcpus 8 m1.xlarge
fi
DEMO_NET_ID=$(openstack network list | awk '/ demo-net / {print $2}')
cat << EOF
Done.
@ -140,6 +138,6 @@ openstack server create \\
--image ${IMAGE_NAME} \\
--flavor m1.tiny \\
--key-name mykey \\
--nic net-id=${DEMO_NET_ID} \\
--network demo-net \\
demo1
EOF