| function create-flat-net { |
| neutron net-show $NAME-net 2>&1 > /dev/null |
| neutron net-create --provider:physical_network=$NAME --provider:network_type=flat --shared $NAME-net |
| neutron subnet-show $NAME-net 2>&1 > /dev/null |
| neutron subnet-create $NAME-net --name $NAME-net $CIDR --gateway=$GW --disable-dhcp |
| function create-subnet-no-gateway { |
| neutron subnet-show $NAME-net 2>&1 > /dev/null |
| neutron subnet-create $NAME-net --name $NAME-net $CIDR --no-gateway --disable-dhcp |
| create-subnet nat 172.16.0.0/16 172.16.0.1 |