]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
Add rpc agent api and callbacks to resources_rpc
authorJakub Libosvar <libosvar@redhat.com>
Mon, 3 Aug 2015 15:48:02 +0000 (15:48 +0000)
committerIhar Hrachyshka <ihrachys@redhat.com>
Sat, 8 Aug 2015 08:27:12 +0000 (10:27 +0200)
commitac3e1e1256402ab014902239a93ecceff76637d1
treefab611d5bcd7fb114bb58f5ccbda012fab97da9c
parent11e22a435adc20d65196b937381c5d931130e771
Add rpc agent api and callbacks to resources_rpc

This patch also refactors existing test cases for server side rpc
classes in order to test code in generic manner. Finally, we remove
notify() and get_resource() from consumers or producers modules
respectively in order to remove circular dependencies. The notificitaion
driver will send events directly using RPC api class instead of going
through registry.

Co-Authored-By: Miguel Angel Ajo <mangelajo@redhat.com>
Partially-Implements: blueprint quantum-qos-api
Change-Id: I9120748505856acc7aa8d15d896697dd8487bb02
neutron/api/rpc/handlers/resources_rpc.py
neutron/common/topics.py
neutron/objects/base.py
neutron/tests/unit/api/rpc/handlers/test_resources_rpc.py
neutron/tests/unit/objects/test_base.py