vmware-nsx/neutron/tests/unit/openvswitch
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
..
__init__.py Remove the useless vim modelines 2014-06-21 15:07:31 +08:00
test_agent_scheduler.py Merge "Make DhcpRpcCallback a separate callback class" 2014-08-29 09:15:03 +00:00
test_openvswitch_plugin.py call security_groups_member_updated in port_update 2014-07-21 14:22:09 -04:00
test_ovs_db.py Remove auto-generation of db schema from models at startup 2014-08-15 17:21:17 -04:00
test_ovs_defaults.py Implement local ARP responder onto OVS agent 2014-05-19 21:42:11 +02:00
test_ovs_neutron_agent.py Fix DVR to service LBaaS VIP Ports 2014-08-26 06:43:12 -07:00
test_ovs_rpcapi.py Remove redundant topic from rpc calls 2014-08-05 10:14:20 +00:00
test_ovs_security_group.py Make SecurityGroupsRpcCallback a separate callback class 2014-08-30 10:19:42 +08:00
test_ovs_tunnel.py Refresh rpc_backend values in unit tests to those from oslo.messaging 2014-08-22 11:02:25 +02:00