]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
Execute ipset command using check_exit_code
authorshihanzhang <shihanzhang@huawei.com>
Fri, 18 Sep 2015 02:38:43 +0000 (10:38 +0800)
committerMiguel Angel Ajo <mangelajo@redhat.com>
Tue, 6 Oct 2015 08:48:55 +0000 (08:48 +0000)
commitfb40dbbce9ac17ee43d8921aa62c28f1ea723fba
tree430c46743526f81984d9ba9fc14a6007cb28f224
parent67eba1df186a3da4da63fd1981ae131d0749a046
Execute ipset command using check_exit_code

When l2 agent execute ipset command, we should pass
parameter 'check_exit_code' to self.execute acording to
action.
The intention is to safely fail if we try to destroy a
non existing set, or delete a non existing member.
Otherwise the agent gets stuck in a loop if such situation
happens. Such kind of event would be logged as errors.

Change-Id: If67330523d114d6da13d0280851e7138a51d08f7
Closes-bug: #1497074
neutron/agent/linux/ipset_manager.py
neutron/tests/functional/agent/linux/test_ipset.py
neutron/tests/unit/agent/linux/test_ipset_manager.py