Skip to content

Commit

Permalink
Check for action_list before accessing it
Browse files Browse the repository at this point in the history
Change-Id: I692ccf34cd569b1988d9cc2b29eee63af1bcac58
Closes-Bug: 1469850
(cherry picked from commit 4849ad8)
(cherry picked from commit bf71a4c)
  • Loading branch information
Sachin Bansal authored and Hampapur Ajay committed Oct 2, 2015
1 parent 559056d commit 53ae4f7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/config/schema-transformer/to_bgp.py
Expand Up @@ -2361,7 +2361,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 53ae4f7

Please sign in to comment.