diff options
| author | Todd Willey <todd@ansolabs.com> | 2011-01-21 12:30:26 -0500 |
|---|---|---|
| committer | Todd Willey <todd@ansolabs.com> | 2011-01-21 12:30:26 -0500 |
| commit | f02c9e781bdddd609601da81b97a438b6d5b9781 (patch) | |
| tree | fdb6521cc42ee2b7bb2186db415bc9f5648eea83 /nova/api | |
| parent | abb6286b3a4a4cca03d99a5d0d59bc621208bfd2 (diff) | |
Add provider_fw_rules awareness to iptables firewall driver.
Diffstat (limited to 'nova/api')
| -rw-r--r-- | nova/api/ec2/admin.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/nova/api/ec2/admin.py b/nova/api/ec2/admin.py index 3a8ed39eb..c83f84b15 100644 --- a/nova/api/ec2/admin.py +++ b/nova/api/ec2/admin.py @@ -236,7 +236,8 @@ class AdminController(object): udp_rule = rule.copy() udp_rule.update({"protocol": "UDP", "from_port": 1, "to_port": 65535}) icmp_rule = rule.copy() - icmp_rule.update({"protocol": "ICMP", "from_port": -1, "to_port": -1}) + icmp_rule.update({"protocol": "ICMP", "from_port": -1, + "to_port": None}) rules_added = 0 if not self._provider_fw_rule_exists(context, tcp_rule): db.provider_fw_rule_create(context, tcp_rule) |
