Skip to content

Commit

Permalink
Do not set VRF assign rules for right interfaces of nat instances
Browse files Browse the repository at this point in the history
We are planning not to link service RI with the primary RI of the
right networks of in-network-nat instances. We should also not
set VRF assign rules.

Change-Id: I11ad075a2d91e5da18094612a2c5935366197c94
Partial-Bug: 1554175
Related-Bug: 1562200
  • Loading branch information
Sachin Bansal committed Apr 2, 2016
1 parent 07cc214 commit 78ec1c8
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/config/schema-transformer/to_bgp.py
Original file line number Diff line number Diff line change
Expand Up @@ -2405,9 +2405,14 @@ def recreate_vrf_assign_table(self):
if smode not in ['in-network', 'in-network-nat']:
return

if smode == 'in-network-nat' and self.service_interface_type == 'right':
vn_policies = []
else:
vn_policies = vn.policies

policy_rule_count = 0
si_name = vm_obj.service_instance
for policy_name in vn.policies:
for policy_name in vn_policies:
policy = NetworkPolicyST.get(policy_name)
if policy is None:
continue
Expand Down

0 comments on commit 78ec1c8

Please sign in to comment.