summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMelanie Witt <melwitt@yahoo-inc.com>2013-05-22 18:23:45 +0000
committerMelanie Witt <melwitt@yahoo-inc.com>2013-05-22 18:39:53 +0000
commitdb95ffa55cbb668e6854e25b215a7e2048e20349 (patch)
tree4bede2aaaa5e011f486893f44bcd06add719842f
parent986fa041a7cb8b85f4b3be47407288c1f71c0972 (diff)
downloadnova-db95ffa55cbb668e6854e25b215a7e2048e20349.tar.gz
nova-db95ffa55cbb668e6854e25b215a7e2048e20349.tar.xz
nova-db95ffa55cbb668e6854e25b215a7e2048e20349.zip
translates empty remote_ip_prefix to valid cidr for nova
Quantum allows empty remote_ip_prefix to mean "any host" but Nova uses a CIDR as part of each rule. Fixes bug 1180828 Change-Id: I4983515ccd0cc621491d63e59d6ab6ac4dd74b6a
-rw-r--r--nova/network/security_group/quantum_driver.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/nova/network/security_group/quantum_driver.py b/nova/network/security_group/quantum_driver.py
index ea7dac825..f40aa9aff 100644
--- a/nova/network/security_group/quantum_driver.py
+++ b/nova/network/security_group/quantum_driver.py
@@ -91,7 +91,7 @@ class SecurityGroupAPI(security_group_base.SecurityGroupBase):
nova_rule['from_port'] = rule.get('port_range_min')
nova_rule['to_port'] = rule.get('port_range_max')
nova_rule['group_id'] = rule['remote_group_id']
- nova_rule['cidr'] = rule['remote_ip_prefix']
+ nova_rule['cidr'] = self.parse_cidr(rule.get('remote_ip_prefix'))
return nova_rule
def get(self, context, name=None, id=None, map_exception=False):