neutron/neutron/tests/functional
Kevin Benton bf28c724dd Add ARP spoofing protection for LinuxBridge agent
This patch adds ARP spoofing protection for the Linux Bridge
agent based on ebtables. This code was written to be minimally
invasive with the intent of back-porting to Kilo.

The protection is enabled and disabled with the same
'prevent_arp_spoofing' agent config flag added for the OVS agent
in I7c079b779245a0af6bc793564fa8a560e4226afe.

The protection works by setting up an ebtables chain for each port
and jumping all ARP traffic to that chain. The port-specific chains
have a default DROP policy and then have allow rules installed that
only allow ARP traffic with a source CIDR that matches one of the
port's fixed IPs or an allowed address pair.

Since this is a back-port to Kilo, it is disabled by default just
like the protection added for OVS.

This patch additionally pulls back the required ebtables filter and
the functional test helpers to support the tests.

Conflicts:
	neutron/plugins/linuxbridge/agent/linuxbridge_neutron_agent.py
	neutron/plugins/linuxbridge/common/config.py
	neutron/tests/common/machine_fixtures.py

Closes-Bug: #1274034
Change-Id: I0b0e3b1272472385dff060897ecbd25e93fd78e7
(cherry picked from commit 04197bc4bb)
2015-09-03 10:39:47 -07:00
..
agent Add ARP spoofing protection for LinuxBridge agent 2015-09-03 10:39:47 -07:00
api Simplify retargetable test framework 2015-03-31 20:13:04 +00:00
cmd Define bridge/port fixtures for OVS/LinuxBridge/Veth backends 2015-04-01 15:01:06 +00:00
db Fix displaying of devref for TestModelsMigrations 2015-03-26 10:33:37 +03:00
sanity Add simple ARP spoofing protection 2015-03-29 20:57:07 -07:00
scheduler Fix the ImportErrors in l3 and dhcp scheduler functional tests 2015-06-01 15:06:56 +02:00
__init__.py Fix test discovery for api and functional paths 2015-07-13 13:01:54 +00:00
base.py Prepare Base(OVS)LinuxTestCase transformation in helpers 2015-03-19 14:43:42 +00:00
requirements.txt Move DB TestModelsMigrations from unit to functional 2014-12-18 22:41:05 -05:00