Skip to content

Commit

Permalink
Fixing port-list with fixed-ip filtering
Browse files Browse the repository at this point in the history
Change-Id: Ibf2f06441a9bcaa36d7f5ef8c38485029cf4c34e
Closes-bug: #1484912
  • Loading branch information
anbu-enovance committed Aug 20, 2015
1 parent 7e7a7ce commit 3718950
Showing 1 changed file with 6 additions and 2 deletions.
Expand Up @@ -39,8 +39,12 @@ def _port_fixed_ips_is_present(check, against):
# against = [{'subnet_id': 'uuid', 'ip_address': u'20.0.0.5'}]

for item in against:
if item['ip_address'] in check['ip_address'] and (
item['subnet_id'] in check['subnet_id']):
result = True
for k in item.keys():
if k in check and item[k] not in check[k]:
result = False

if result:
return True

return False
Expand Down

0 comments on commit 3718950

Please sign in to comment.