]> 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)
committerBrian Haley <brian.haley@hp.com>
Wed, 20 May 2015 19:04:05 +0000 (12:04 -0700)
commit12889f70e1ae547598f4c663e9da5b9bb03e347e
tree5e7ad77f57850864db4fb3ab8f0a6221673fc2a2
parenta8f4358e3d5b3769f4d06ba438396d78e94e8eaf
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
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