Skip to content

Commit

Permalink
Allow filter ports by mac_address
Browse files Browse the repository at this point in the history
This change allows filter port list by mac_address field.

Closes-Bug: 1718447

Change-Id: If2425f8553701440eb4fedd0b391268752b237ed
  • Loading branch information
Andrey Shestakov authored and jumpojoy committed Sep 21, 2017
1 parent c116b51 commit e437fde
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 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 @@ -4357,6 +4357,9 @@ def port_list(self, context=None, filters=None):
not self._port_fixed_ips_is_present(filters['fixed_ips'],
neutron_port['fixed_ips'])):
continue
if not self._filters_is_present(filters, 'mac_address',
neutron_port['mac_address']):
continue

ret_list.append(neutron_port)
return ret_list
Expand Down

0 comments on commit e437fde

Please sign in to comment.