Skip to content

Commit

Permalink
[VNC OpenStack] Filter port list with network back-ref
Browse files Browse the repository at this point in the history
On port list, when the filter network IDs is provided we can filter VMIs
with back reference to that network IDs.

Closes_bug: #1646137

Change-Id: I5c479e6f4b3e512d1b24a6b415f4fa0633d5d2ba
  • Loading branch information
Édouard Thuleau committed Jan 27, 2017
1 parent 41e0af0 commit 158e0fd
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/config/vnc_openstack/vnc_openstack/neutron_plugin_db.py
Original file line number Diff line number Diff line change
Expand Up @@ -3786,6 +3786,8 @@ def port_list(self, context=None, filters=None):
except NoIdError:
continue
ret_q_ports.append(port_info)
elif 'network_id' in filters:
ret_q_ports = self._port_list_network(filters['network_id'])
else:
ret_q_ports = self._port_list_project(project_id,
is_admin=context['is_admin'])
Expand Down

0 comments on commit 158e0fd

Please sign in to comment.