Skip to content

Commit

Permalink
Merge "SG rule should be ignored if neither source or destination is …
Browse files Browse the repository at this point in the history
…'local'"
  • Loading branch information
Zuul authored and opencontrail-ci-admin committed Oct 2, 2015
2 parents 7a26ec7 + 5b7452b commit 612771f
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/config/schema-transformer/config_db.py
Expand Up @@ -1544,6 +1544,12 @@ def policy_to_acl_rule(self, prule):
if daddr.security_group == 'local':
daddr_match.security_group = None
acl_rule_list = ingress_acl_rule_list
if acl_rule_list is None:
self._logger.error("SG rule must have either source "
"or destination as 'local': " +
self.name)
continue

for dp in prule.dst_ports:
action = ActionListType(simple_action='pass')
match = MatchConditionType(arule_proto,
Expand Down

0 comments on commit 612771f

Please sign in to comment.