neutron/neutron/tests/unit/services/trunk/drivers/linuxbridge
Kevin Benton bf4b614b5d LB Trunk: Stop matching MAC of subport to port model
Matching the MAC of the tap interface on the hypervisor
to the MAC that the VM will actually use to send traffic
through the tap causes the following error messages:

brq9e974900-cd: received packet on tapa8a6ce4a-e8 with
own address as source address

This is triggering a warning because there are now two
forwarding entries on the bridge, a static one from the
tap device, and a learned one from the packets received.[1]

Due to the presence of a static MAC entry, this will break
things like allowed_address_pair use cases that allow a MAC
to be used by multiple ports.

This patch removes all of the logic to set the MAC
address on the TAP device because it didn't serve any
other purpose than easy to correlate output from
ip link show commands and neutron port MAC addresses.

TAP devices will now just get whatever MAC address the kernel
selects for them.


1. https://lists.linuxfoundation.org/pipermail/bridge/2004-January/003740.html



Closes-Bug: #1668209
(cherry picked from commit 1fae7ad108)
Change-Id: I0ff46f9550a79f486063a8e2810ed3b1140a4769
2017-03-04 01:35:39 +00:00
..
agent LB Trunk: Stop matching MAC of subport to port model 2017-03-04 01:35:39 +00:00
__init__.py Add linux bridge trunk server side driver 2016-08-05 21:49:36 -07:00
test_driver.py Make OVS and LinuxBridge trunk drivers' is_loaded() property more robust 2016-08-24 15:45:47 -07:00