Skip to content

Commit

Permalink
Merge "Fixing port-list with fixed-ip filtering"
Browse files Browse the repository at this point in the history
  • Loading branch information
Zuul authored and opencontrail-ci-admin committed Aug 22, 2015
2 parents b2ffb87 + 3718950 commit aad0604
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 aad0604

Please sign in to comment.