]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
Reduce prefix and suffix length in ipsets
authorMiguel Angel Ajo <mangelajo@redhat.com>
Thu, 16 Apr 2015 06:28:38 +0000 (06:28 +0000)
committerBrian Haley <brian.haley@hp.com>
Tue, 5 May 2015 21:57:49 +0000 (17:57 -0400)
commit8e24c7ef566fac7a41b40a12d3480fbdd0ab252b
treed3a290edc491c20a9731a69ab9b54087d7ecc3e9
parentcdd73ba053edd0df8fe9a916030cd80f630e183c
Reduce prefix and suffix length in ipsets

The new NET prefix introduced by I8177699b157cd3eac46e2f481f47b5d966c49b07
increases collision chances by trimming the sg_id by 3 more chars.

This patch reduces the prefix to 1 single char and also reduces the
swap suffix to reduce the chances of collision.

Change-Id: I8a1559e173a05b2297c5cd2efa9fee7627b88a4f
Related-Bug: #1439817
Related-Bug: #1444397
neutron/agent/linux/ipset_manager.py
neutron/tests/unit/agent/linux/test_ipset_manager.py
neutron/tests/unit/agent/test_securitygroups_rpc.py