Merge "Fix sg_rule didn't set protocol field"

This commit is contained in:
Jenkins 2017-08-10 00:09:09 +00:00 committed by Gerrit Code Review
commit 7ab5b27413
1 changed files with 1 additions and 1 deletions

View File

@ -152,7 +152,7 @@ class AllowedAddressPairsDriver(neutron_base.BaseNeutronDriver):
# with the egress rules. VRRP uses protocol
# 51 and 112
if rule.get('direction') != 'egress' and
rule.get('protocol').lower() == 'tcp']
rule.get('protocol', '').lower() == 'tcp']
add_ports = set(updated_ports) - set(old_ports)
del_ports = set(old_ports) - set(updated_ports)
for rule in rules.get('security_group_rules', []):