Skip to content

Commit

Permalink
Merge "Use subnet and subnet_list from original address" into R3.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Zuul authored and opencontrail-ci-admin committed Nov 18, 2016
2 parents 4632bc9 + 4d1a211 commit 6ea15fc
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions src/config/schema-transformer/config_db.py
Original file line number Diff line number Diff line change
Expand Up @@ -1021,10 +1021,16 @@ def policy_to_acl_rule(self, prule, dynamic):
if not service_ris:
continue
if self.me(svn):
da_list = [AddressType(virtual_network=x)
da_list = [AddressType(
virtual_network=x,
subnet=daddr_match.subnet,
subnet_list=daddr_match.subnet_list)
for x in service_ris]
elif self.me(dvn):
sa_list = [AddressType(virtual_network=x)
sa_list = [AddressType(
virtual_network=x,
subnet=saddr_match.subnet,
subnet_list=saddr_match.subnet_list)
for x in service_ris]

for sp, dp, sa, da in itertools.product(sp_list, dp_list,
Expand Down

0 comments on commit 6ea15fc

Please sign in to comment.