Skip to content

Commit

Permalink
Merge "Raise BadRequest when remote_ip_prefix and remote_group_id are…
Browse files Browse the repository at this point in the history
… set"
  • Loading branch information
Zuul authored and opencontrail-ci-admin committed Aug 17, 2015
2 parents 3c92f97 + b365bbe commit 32364bf
Showing 1 changed file with 5 additions and 0 deletions.
Expand Up @@ -296,6 +296,11 @@ def _security_group_rule_neutron_to_vnc(self, sgr_q):
if sgr_q['port_range_max'] is not None:
port_max = sgr_q['port_range_max']

if sgr_q['remote_ip_prefix'] and sgr_q['remote_group_id']:
self._raise_contrail_exception("BadRequest",
msg="Can't set remote_ip_prefix with remote_group_id",
resource="security_group_rule")

endpt = [vnc_api.AddressType(security_group='any')]
if sgr_q['remote_ip_prefix']:
cidr = sgr_q['remote_ip_prefix'].split('/')
Expand Down

0 comments on commit 32364bf

Please sign in to comment.