Fix creation of ICMP security group rule when using Neutron

Update ICMP allow rule to use the value -1 for to_port and
from_port parameters as ICMP protocol does not have port.

Change-Id: Idc76e156f07b99574b6b77dba803d5a4f823380b
Closes-bug: #1336704
This commit is contained in:
Bruno Semperlotti 2014-07-02 09:30:06 +00:00
parent 6dbd51ac8d
commit 7ea1ba4e81

View File

@ -54,7 +54,7 @@ def _prepare_open_secgroup(endpoint):
},
{
"ip_protocol": "icmp",
"to_port": 1,
"to_port": -1,
"from_port": -1,
"ip_range": {"cidr": "0.0.0.0/0"}
}