vmware-nsx/neutron/plugins/bigswitch
Akihiro Motoki 55737a749e Make SecurityGroupsRpcCallback a separate callback class
RPC has a version of itself. In Neutron a plugin implements
several RPC interface, so a single RPC version doesn't work.
In Mixin callback class approach, RPC versioning depends on
each plugin implementation and it makes harder to maintain
RPC version appropriately. This patch series replaces mixin
RPC callback of server side with a separate class.

This commit handles server-side callback of security group
RPC interface.
* The server-side callback of Security group RPC is moved to
  api/rpc/handler and db/securitygroups_rpc_base now only
  contains a mixin class to add agent-based security group
  implementation with db operations.
* get_port_from_device method in server-side callback class
  is moved to a mixin class of plugin implementation
  (SecurityGroupServerRpcMixin) because it involves DB lookup
  and is tightly coupled with plugin implementation rather
  than RPC interface definition.

Most unit tests for SGServerRpcCallBackTestCase were skipped
in the base class before, but now they are no longer skipped.

The following items will be planned in later patches
to avoid drastic changes in a single patch.
* Merge security group RPC API and agent callback classes in
  agent/securitygroups_rpc into api/rpc/handlers/securitygroup_rpc
* Remove completely duplicated db access code in get_port_from_device
  and get_port_and_sgs

Partial-Bug: #1359416
Change-Id: Ia6535217d2e3b849a95667c1b53dd09675002892
2014-08-30 10:19:42 +08:00
..
agent Moved rpc_compat.py code back into rpc.py 2014-06-24 10:35:39 +02:00
db Big Switch: Only update hash header on success 2014-08-04 20:16:54 +00:00
extensions Remove the useless vim modelines 2014-06-21 15:07:31 +08:00
tests Use jsonutils instead of stdlib json 2014-08-14 12:45:58 +02:00
README Rename Quantum to Neutron 2013-07-06 15:02:43 -04:00
__init__.py Remove the useless vim modelines 2014-06-21 15:07:31 +08:00
config.py Merge "Remove the useless vim modelines" 2014-06-23 06:10:21 +00:00
plugin.py Make SecurityGroupsRpcCallback a separate callback class 2014-08-30 10:19:42 +08:00
routerrule_db.py Remove the useless vim modelines 2014-06-21 15:07:31 +08:00
servermanager.py Use jsonutils instead of stdlib json 2014-08-14 12:45:58 +02:00
vcsversion.py Remove the useless vim modelines 2014-06-21 15:07:31 +08:00
version.py Remove the useless vim modelines 2014-06-21 15:07:31 +08:00

README

# Neuron REST Proxy Plug-in for Big Switch and FloodLight Controllers

This module provides a generic neutron plugin 'NeutronRestProxy' that
translates neutron function calls to authenticated REST requests (JSON supported)
to a set of redundant external network controllers.

It also keeps a local persistent store of neutron state that has been
setup using that API.

Currently the FloodLight Openflow Controller or the Big Switch Networks Controller
can be configured as external network controllers for this plugin.

For more details on this plugin, please refer to the following link:
http://www.openflowhub.org/display/floodlightcontroller/Neutron+REST+Proxy+Plugin