Created
December 23, 2016 16:53
-
-
Save misterdorm/37a8997aed43081bac8d12c7f101853b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/neutron/db/securitygroups_rpc_base.py b/neutron/db/securitygroups_rpc_base.py | |
index a7a9bb2..47acd2d 100644 | |
--- a/neutron/db/securitygroups_rpc_base.py | |
+++ b/neutron/db/securitygroups_rpc_base.py | |
@@ -133,15 +133,12 @@ class SecurityGroupServerRpcMixin(sg_db.SecurityGroupDbMixin): | |
sg_provider_updated_networks = set() | |
sec_groups = set() | |
for port in ports: | |
- if port['device_owner'] == n_const.DEVICE_OWNER_DHCP: | |
- sg_provider_updated_networks.add( | |
- port['network_id']) | |
# For IPv6, provider rule need to be updated in case router | |
# interface is created or updated after VM port is created. | |
# NOTE (Swami): ROUTER_INTERFACE_OWNERS check is required | |
# since it includes the legacy router interface device owners | |
# and DVR router interface device owners. | |
- elif port['device_owner'] in n_const.ROUTER_INTERFACE_OWNERS: | |
+ if port['device_owner'] in n_const.ROUTER_INTERFACE_OWNERS: | |
if any(netaddr.IPAddress(fixed_ip['ip_address']).version == 6 | |
for fixed_ip in port['fixed_ips']): | |
sg_provider_updated_networks.add( |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment