diff options
Diffstat (limited to 'neutron/db/securitygroups_rpc_base.py')
-rw-r--r-- | neutron/db/securitygroups_rpc_base.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/neutron/db/securitygroups_rpc_base.py b/neutron/db/securitygroups_rpc_base.py index 2f6e2b7fdb..3c00b6d0b9 100644 --- a/neutron/db/securitygroups_rpc_base.py +++ b/neutron/db/securitygroups_rpc_base.py @@ -214,7 +214,7 @@ class SecurityGroupServerRpcMixin(sg_db.SecurityGroupDbMixin): context, sg_info['sg_member_ips'].keys()) for sg_id, member_ips in ips.items(): for ip in member_ips: - ethertype = 'IPv%d' % netaddr.IPAddress(ip).version + ethertype = 'IPv%d' % netaddr.IPNetwork(ip).version if (ethertype in sg_info['sg_member_ips'][sg_id] and ip not in sg_info['sg_member_ips'][sg_id][ethertype]): sg_info['sg_member_ips'][sg_id][ethertype].append(ip) |