Dan Wendlandt c029777dd7 Fix some plugins that don't check that nets + ports are owned by tenant
bug 942713. This bug confuses the validate_networks() method of
QuantumManager in Nova, causing it to believe that it is valid for a
tenant to plug into a particular network when in fact that network is not
owned by the tenant, nor the "provider".

The patch also adds unit tests to confirm correct plugin behavior.

This patch fixes the issue for the Sample Plugin, the OVS plugin,
the Linux Bridge plugin, and the Ryu plugin, all of which has the
same DB model.  Validated the fix with the unit tests.


I couldn't run the unit tests for the NVP plugin standalone, but by
inspection, the code seems to handle this case.  I wasn't able to run
the Cisco plugin unit tests, and that code uses its own DB model, so I
am uncertain whether this issue exists in that plugin.



Change-Id: I8c4a5f3eb151b91a1076821dc1916842510dfb90
2012-02-28 12:34:49 -08:00
..
2012-02-26 13:30:25 +09:00
2012-02-26 13:30:25 +09:00
2012-02-26 13:30:25 +09:00
2012-02-26 13:30:25 +09:00
2012-02-26 13:30:25 +09:00
2012-02-26 13:30:25 +09:00
2012-02-26 13:30:25 +09:00

Quantum plugin for Ryu Network Operating System
This directory includes quantum plugin for Ryu Network Operating System.

# -- Installation

For how to install/set up this plugin with Ryu and Open Stack, please refer to
http://www.osrg.net/ryu/using_with_openstack.html

# -- Ryu General

For general Ryu stuff, please refer to
http://www.osrg.net/ryu/

Ryu is available at github
git://github.com/osrg/ryu.git
https://github.com/osrg/ryu

The mailing is at
ryu-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ryu-devel

# -- unit test

In order to run unit tests for Ryu plugin
PLUGIN_DIR=quantum/plugins/ryu ./run_tests.sh
NOTE: In order to run unit tests, sqlite3 is additionally needed.

Enjoy!