From c1ae4018233679b703dfe56a839d422d66eb0a1b Mon Sep 17 00:00:00 2001 From: Justin Riley Date: Wed, 29 Apr 2015 11:41:30 -0400 Subject: [PATCH] neutron subnet-create requires args at the end The network name must be next to the CIDR otherwise `neutron subnet-create` gets confused. Change-Id: Ie8b19d3824e5e25f80c61f0794595813c80b98da --- tools/init-runonce | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/init-runonce b/tools/init-runonce index 38b5856b33..4002f2cd7f 100755 --- a/tools/init-runonce +++ b/tools/init-runonce @@ -46,7 +46,7 @@ else neutron net-create public1 --router:external True --provider:physical_network physnet1 --provider:network_type flat neutron subnet-create --name 1-subnet --disable-dhcp --allocation-pool start=192.168.100.150,end=192.168.100.199 public1 192.168.100.0/24 --gateway 192.168.100.1 --dns_nameservers list=true 192.168.100.1 neutron net-create demo-net --provider:network_type vxlan --provider:segmentation_id 10 - neutron subnet-create demo-net --name demo-subnet --gateway 10.10.10.1 10.10.10.0/24 + neutron subnet-create --name demo-subnet --gateway 10.10.10.1 demo-net 10.10.10.0/24 neutron router-create demo-router neutron router-interface-add demo-router demo-subnet neutron router-gateway-set demo-router public1