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
(cherry picked from commit 158e0fd)
  • Loading branch information
Édouard Thuleau authored and Sachin Bansal committed Feb 6, 2017
1 parent dfeabc5 commit 8a38b95
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
Expand Up @@ -3779,6 +3779,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 8a38b95

Please sign in to comment.