]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
Match order of iptables arguments to iptables-save
authorKevin Benton <blak111@gmail.com>
Sat, 16 May 2015 02:44:16 +0000 (19:44 -0700)
committerKevin Benton <kevinbenton@buttewifi.com>
Thu, 21 May 2015 19:29:46 +0000 (19:29 +0000)
commit6b127ab6859588d97833b9caea92661b2ae4591a
treed736260892bd817f94e8aae5e64c8fec153e7627
parent8b324438a3ee4b92812daba21a90c9690b937563
Match order of iptables arguments to iptables-save

The way we were forming our iptables rules was not matching
the output of iptables-save. This caused the logic that preserves
counters to miss many of the rules.

This patch corrects the order for the comments and the allowed address
pairs to match the output order of iptables-save.

Closes-Bug: #1456823
Change-Id: I34c2249d0865485578767865c82414e1d813d563
(cherry picked from commit 12889f70e1ae547598f4c663e9da5b9bb03e347e)
neutron/agent/linux/iptables_firewall.py
neutron/agent/linux/iptables_manager.py
neutron/tests/unit/agent/linux/test_iptables_firewall.py
neutron/tests/unit/agent/linux/test_iptables_manager.py
neutron/tests/unit/agent/test_securitygroups_rpc.py