This patch simply guarantees default segmentation type and
id in gateway connection info for the 'connect' and 'disconnect'
actions are correctly set respectively to 'flat' and 0.
HenryVIII [Fri, 14 Jun 2013 00:03:20 +0000 (20:03 -0400)]
Remove unit tests that are no longer run.
A long time ago, quantum/tests/unit became the home for all unit
tests, but these ones in the Cisco plugin directory got left
behind. They have suffered bit-rot and need to be removed.
Also:
- Move the fake Nexus driver to new home.
- Filed new bugs to track the task of improving unit test coverage of
Cisco plugin code.
This patch implements the following changes:
* merge lbaas_plugin.py and plugin.py into 'plugin.py'
After that the default 'reference' implementation is available again.
* move all code related to reference implementation from plugin.py to
drivers/haproxy/plugin_driver.py
* Inherit HaproxyOnHostPluginDriver from abstract driver and implement
its interface.
* modify tests accordingly
Akihiro MOTOKI [Wed, 12 Jun 2013 08:18:55 +0000 (17:18 +0900)]
Ensure to remove auto delete ports from OFC in NEC plugin
When deleting a network, dhcp ports are removed automatically
in db_plugin. This causes a failure network deletion since the
corresponding port exists on OFC and the network on OFC cannot
be deleted unless a subnet on the network is deleted explicitly.
This commit gets auto-delete ports and delete the corresponding
ports on the controller before deleting the network.
Kyle Mestery [Fri, 17 May 2013 20:04:19 +0000 (15:04 -0500)]
Add support for VXLAN to the Open vSwitch plugin.
This commit adds support for utilizing the VXLAN tunneling protocol in versions
of Open vSwitch >= 1.10. This is configurable and will default to GRE if not
configured. As part of this commit, it is possible to configure the UDP port
VXLAN will utilize as well. VXLAN and GRE cannot be configured at the same
time with this patch. 2 new configuration file options are added to the AGENT
section of the config to support this: 'tunnel_type' and 'vxlan_udp_port'.
In addition, the agent no longer makes use of enable_tunneling, as this can
be determined if tunnel_type is set.
Note: The VXLAN functionality utilized here is what is implemented in Open
vSwitch itself, and is different than the VXLAN functionality in the
upstream Linux kernel. The code validates both the userspace and kernel
pieces of OVS to verify if VXLAN functionality can be supported on the
running system
Zhongyue Luo [Tue, 14 May 2013 09:17:46 +0000 (17:17 +0800)]
Hide lock_prefix argument using synchronized_with_prefix()
The lockfile module has a new convenience API which sets the lockfile prefix.
Using this API, the prefix is not required everytime synchronized is used.
This enables for projects to have consistant prefixes on their lockfiles
Aaron Rosen [Wed, 5 Jun 2013 00:19:07 +0000 (17:19 -0700)]
Change lazy='dynamic' to 'joined' in models_v2
Previously several models were defined with lazy='dynamic'. This would
then cause Ports.fixed_ips (or w/e was specified as dynamic) to be defined
as a AppenderQuery object and when accessed would query for the result.
Therefore in get_ports() for example, when fixed_ips was accessed
in _make_port_dict() we would be issuing an addition query to the database
to lookup the fixed_ips information.
This patch changes update_port/subnet() so that it keeps track of what
changed so it does not have to query the db for values it should already
know about.
This patch also adds a unit test for update_subnet() adding host routes
where there was missing code coverage.
Akihiro MOTOKI [Mon, 20 May 2013 20:07:05 +0000 (05:07 +0900)]
Improve test coverage in NEC plugin
blueprint nec-plugin-test-coverage
This commit adds the following changes in unit tests.
- Unit tests to check communications with the controller in NEC plugin
- Unit tests for nec plugin agent
- Improve coverage of OFC drivers
- Mock the client to talk with the external controller in db.
This patch ensure subnet is loaded only once from the database.
Also, the port is now loaded from the database only if the
corresponding NVP logical port is found.
Kevin Benton [Tue, 4 Jun 2013 23:18:58 +0000 (16:18 -0700)]
Adds support for the Indigo Virtual Switch (IVS)
Implements: blueprint ivs-interface-driver
Adds the IVS VIF type to portbindings.py.
Adds the VIF interface class to allow agents to bind to VIF switches.
Adds support to the BigSwitch plugin to request the IVS VIF type on nova compute nodes.
Adds unit tests for new interface class and changes to BigSwitch plugin.
Aaron Rosen [Thu, 6 Jun 2013 22:06:24 +0000 (15:06 -0700)]
Add support for protocol numbers
This patch adds support for passing in protocol numbers into the API.
For example, 1 instead of ICMP. This allows all protocols besides
just TCP/UDP/ICMP to be used. This patch includes changes to support
this for the NVP Plugin. Existing plugins using securitygroups_rpc_base
and OVSHybridIptablesFirewallDriver require no change to leverage this.
This commit adds an API extension for NVP where the
NVP supported mac learning feature can be switched
on/off for a specific port. The attribute can be
True or False or omitted altogether.
Lorin Hochstein [Tue, 4 Jun 2013 13:42:00 +0000 (09:42 -0400)]
Add extra details in BigSwitch config
Add some details to some of the BigSwitch configuration options.
The doc team will soon be generating documentation for configuration
options by extracting it directly from the source code help strings,
which is one of the motivations for adding this detail.
Mate Lakat [Mon, 3 Jun 2013 09:39:13 +0000 (10:39 +0100)]
xenapi: fix rootwrap
The xenapi root wrapper did not parse the "exec_dirs" parameter, so it
failed to execute the commands. This patch works around this problem by
parsing the "exec_dirs".