summaryrefslogtreecommitdiffstats
path: root/ci/openstack.sh
diff options
context:
space:
mode:
authorNarinder Gupta <narinder.gupta@canonical.com>2016-06-22 21:34:00 -0500
committerNarinder Gupta <narinder.gupta@canonical.com>2016-06-22 21:34:43 -0500
commita7e0222655f1944a8ab5a642839f23d45e70324e (patch)
treec4e9a28ec3c542f7fce70baf65d45a571f2f932d /ci/openstack.sh
parente00e92d2e9c1f33fe23e65169c475ba8cd6ab0ee (diff)
create the default security group rules to test the floating ips.
Change-Id: I91a3fe0c3d28da27ea521d93e826b16ffc7a4261 Signed-off-by: Narinder Gupta <narinder.gupta@canonical.com>
Diffstat (limited to 'ci/openstack.sh')
-rwxr-xr-xci/openstack.sh12
1 files changed, 10 insertions, 2 deletions
diff --git a/ci/openstack.sh b/ci/openstack.sh
index 1b36aabe..2da729f6 100755
--- a/ci/openstack.sh
+++ b/ci/openstack.sh
@@ -106,14 +106,22 @@ if [ "onos" == "$1" ]; then
neutron net-create ext-net --shared --router:external=True
neutron subnet-create ext-net --name ext-subnet $EXTNET_NET
update_gw_mac
+elif [ "nosdn" == "$1" ]; then
+ neutron net-create ext-net --shared --router:external --provider:physical_network external --provider:network_type flat
+ neutron subnet-create ext-net --name ext-subnet \
+ --allocation-pool start=$EXTNET_FIP,end=$EXTNET_LIP \
+ --disable-dhcp --gateway $EXTNET_GW $EXTNET_NET
+ # configure security groups
+ neutron security-group-rule-create --direction ingress --ethertype IPv4 --protocol icmp --remote-ip-prefix 0.0.0.0/0 default
+ neutron security-group-rule-create --direction ingress --ethertype IPv4 --protocol tcp --port-range-min 22 --port-range-max 22 --remote-ip-prefix 0.0.0.0/0 default
else
neutron net-create ext-net --shared --router:external --provider:physical_network external --provider:network_type flat
neutron subnet-create ext-net --name ext-subnet \
--allocation-pool start=$EXTNET_FIP,end=$EXTNET_LIP \
--disable-dhcp --gateway $EXTNET_GW $EXTNET_NET
# configure security groups
-# neutron security-group-rule-create --direction ingress --ethertype IPv4 --protocol icmp --remote-ip-prefix 0.0.0.0/0 default
-# neutron security-group-rule-create --direction ingress --ethertype IPv4 --protocol tcp --port-range-min 22 --port-range-max 22 --remote-ip-prefix 0.0.0.0/0 default
+ #neutron security-group-rule-create --direction ingress --ethertype IPv4 --protocol icmp --remote-ip-prefix 0.0.0.0/0 default
+ #neutron security-group-rule-create --direction ingress --ethertype IPv4 --protocol tcp --port-range-min 22 --port-range-max 22 --remote-ip-prefix 0.0.0.0/0 default
fi