Skip to content

Commit

Permalink
Merge "Check for action_list before accessing it" into R2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Zuul authored and opencontrail-ci-admin committed Jul 6, 2015
2 parents d2d9d80 + 82eb9ce commit a8e812d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/config/schema-transformer/to_bgp.py
Original file line number Diff line number Diff line change
Expand Up @@ -2647,7 +2647,8 @@ def recreate_vrf_assign_table(self):
if policy_rule_entries is None:
continue
for prule in policy_rule_entries.policy_rule:
if si_name not in prule.action_list.apply_service or []:
if (prule.action_list is None or
si_name not in prule.action_list.apply_service or []):
continue
proto = VirtualNetworkST.protocol_policy_to_acl(prule.protocol)
if proto is None:
Expand Down

0 comments on commit a8e812d

Please sign in to comment.