From ffa793b27c4370876dabf64e8b6ab79a73302b19 Mon Sep 17 00:00:00 2001 From: Ihar Hrachyshka Date: Tue, 16 Dec 2014 16:23:40 +0100 Subject: [PATCH] Removed spurious check for ip version We may assume that _add_ingress_ra_rule() receives only RA (=IPv6) ports, so no need to check IP version one more time. The corresponding IP version filter is already applied in _select_ra_ips_for_network_ids(). Change-Id: Ibde56a2eb32eed468defdd02a44cc3360ce82e53 --- neutron/db/securitygroups_rpc_base.py | 3 --- 1 file changed, 3 deletions(-) diff --git a/neutron/db/securitygroups_rpc_base.py b/neutron/db/securitygroups_rpc_base.py index eb241fc36..c1f7b3d8b 100644 --- a/neutron/db/securitygroups_rpc_base.py +++ b/neutron/db/securitygroups_rpc_base.py @@ -411,9 +411,6 @@ class SecurityGroupServerRpcMixin(sg_db.SecurityGroupDbMixin): def _add_ingress_ra_rule(self, port, ips): ra_ips = ips.get(port['network_id']) for ra_ip in ra_ips: - if not netaddr.IPAddress(ra_ip).version == 6: - return - ra_rule = {'direction': 'ingress', 'ethertype': q_const.IPv6, 'protocol': q_const.PROTO_NAME_ICMP_V6, -- 2.45.2