diff options
Diffstat (limited to 'juju')
-rwxr-xr-x | juju/juju_setup.sh | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/juju/juju_setup.sh b/juju/juju_setup.sh index d52b47f..e37eb1f 100755 --- a/juju/juju_setup.sh +++ b/juju/juju_setup.sh @@ -65,6 +65,11 @@ function juju_prepare() --remote-ip-prefix 0.0.0.0/0 $default_secgroup_id fi + if [[ ! $(neutron security-group-rule-list | grep default | grep "icmp") ]]; then + neutron security-group-rule-create --direction egress --protocol icmp \ + --remote-ip-prefix 0.0.0.0/0 $default_secgroup_id + fi + if [[ ! $(neutron security-group-rule-list | grep default | grep "tcp") ]]; then neutron security-group-rule-create --direction ingress --protocol tcp \ --remote-ip-prefix 0.0.0.0/0 $default_secgroup_id |