]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
Ensure ip6tables are used only if ipv6 is enabled in kernel
authorJakub Libosvar <libosvar@redhat.com>
Thu, 7 Aug 2014 08:35:07 +0000 (10:35 +0200)
committerJakub Libosvar <libosvar@redhat.com>
Tue, 19 Aug 2014 13:12:18 +0000 (15:12 +0200)
commitb6e9922364fca4d8d141fbb2f27024f7db79ca9e
tree12443ef5c715af0b15dde51837545a201b7001fb
parentcada146fe3862c0a7001e4e1a115e54845ce97cd
Ensure ip6tables are used only if ipv6 is enabled in kernel

On systems where ipv6 module is not loaded in kernel we need to avoid
usage of ip6tables. This patch reads
/proc/sys/net/ipv6/conf/default/disable_ipv6 file and if ipv6 is
disabled then ip6tables are not used in IptablesManager

Closes-Bug: #1352893

Change-Id: I07e5851aa25eb98b7a97dff86b9850475df85f64
neutron/agent/l3_agent.py
neutron/agent/linux/iptables_firewall.py
neutron/agent/linux/iptables_manager.py
neutron/common/ipv6_utils.py
neutron/services/metering/drivers/iptables/iptables_driver.py
neutron/tests/unit/services/metering/drivers/test_iptables_driver.py
neutron/tests/unit/test_iptables_manager.py
neutron/tests/unit/test_ipv6.py
neutron/tests/unit/test_security_groups_rpc.py