vmware-nsx/quantum/agent
Akihiro MOTOKI aa5a7aaf47 Add a new interface driver OVSVethInterfaceDriver.
Fixes bug 1048681

This commit fixes a bug that quantum agent using a namespace does not
work with NEC plugin. NEC plugin uses an Open vSwitch as an OpenFlow switch,
but an OVS port created by ovs-vsctl add-port becomes down when the port is
moved to some network namespace. Usual OpenFlow controllers respect the
OpenFlow port status. Since DHCP server (dnsmasq) is connected to the down
port, DHCP server disappears from the virtual network.

This behavior can be avoided if we use a similar approach used in
BridgeInterfaceDriver, i.e., we first create a veth pair, add one veth device
to OVS and move the other veth device to a network namespace. To accomplish it
this patch introduces a new interface driver OVSVethInterfaceDriver.

In addition, this patch adds a 'prefix' paramter to unplug(). When deleting
a veth pair, a veth device added to OVS bridge is not removed automatically.
Thus we need a mean to know the veth device name from a device_name to be
removed. It is the reason to add 'prefix' parameter to unplug().

Change-Id: I3f4eae371a27a3171a6a8c9e38ddc9354ed1b6b0
2012-09-12 02:31:24 +09:00
..
common Modified code Pyflakes warning. 2012-09-08 22:57:42 +08:00
linux Add a new interface driver OVSVethInterfaceDriver. 2012-09-12 02:31:24 +09:00
__init__.py Add common dir for shared agent code, add OVS lib. 2012-06-04 22:07:27 -07:00
dhcp_agent.py Add periodic check resync check to DHCP agent 2012-09-10 21:29:35 -04:00
l3_agent.py Add a new interface driver OVSVethInterfaceDriver. 2012-09-12 02:31:24 +09:00
netns_cleanup_util.py Modified code Pyflakes warning. 2012-09-08 22:57:43 +08:00
rpc.py Convert DHCP from polling to RPC 2012-08-14 12:28:54 -04:00