]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
Create ipset set_name_exists() method
authorBrian Haley <brian.haley@hpe.com>
Wed, 14 Oct 2015 02:56:24 +0000 (22:56 -0400)
committerBrian Haley <brian.haley@hpe.com>
Wed, 14 Oct 2015 14:18:44 +0000 (10:18 -0400)
commitc9e1b50542d214621b4cb928f92f0b5092a6163f
tree821c0164243b15e91debeb400311c1752ea8cbae
parent17429ac5c8dd16b38e070b75004a97c3e5463438
Create ipset set_name_exists() method

All the callers of set_exists() already know the set name,
so there's no reason to re-calculate it based on the id and
ethertype. Renamed to set_name_exists() to be clear on what
it is checking.

Change-Id: Ifd2a2c7877c81a440067f9e8a654b49e63199f8c
neutron/agent/linux/ipset_manager.py
neutron/agent/linux/iptables_firewall.py
neutron/tests/unit/agent/linux/test_ipset_manager.py
neutron/tests/unit/agent/linux/test_iptables_firewall.py