Skip to content

Commit

Permalink
Merge "Do not return no-rule SG to neutron" into R2.21.x
Browse files Browse the repository at this point in the history
  • Loading branch information
Zuul authored and opencontrail-ci-admin committed Jul 7, 2016
2 parents cf7ac32 + 89142db commit b26375e
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/config/vnc_openstack/vnc_openstack/neutron_plugin_db.py
Expand Up @@ -2006,10 +2006,9 @@ def _port_vnc_to_neutron(self, port_obj, port_req_memo=None):

port_q_dict['fixed_ips'].append(ip_q_dict)

port_q_dict['security_groups'] = []
sg_refs = port_obj.get_security_group_refs()
for sg_ref in sg_refs or []:
port_q_dict['security_groups'].append(sg_ref['uuid'])
sg_refs = port_obj.get_security_group_refs() or []
port_q_dict['security_groups'] = [ref['uuid'] for ref in sg_refs
if ref['to'] != SG_NO_RULE_FQ_NAME]

port_q_dict['admin_state_up'] = port_obj.get_id_perms().enable

Expand Down

0 comments on commit b26375e

Please sign in to comment.