]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
Scope metadata rpc api using a messaging namespace
authorRussell Bryant <rbryant@redhat.com>
Thu, 18 Dec 2014 20:11:07 +0000 (20:11 +0000)
committerRussell Bryant <rbryant@redhat.com>
Fri, 9 Jan 2015 16:21:01 +0000 (11:21 -0500)
commitcaedc3ee059fd3c76306fe0bf5d5e4c9c95dcb31
treebc3fb40140b527537ed01a4977369e1c6b9d171f
parentbc686f530ed56494746345a9e48ace694b005f05
Scope metadata rpc api using a messaging namespace

This patch does a couple of things.  First it adds docstrings to the
client/server pair of the rpc interface used by the metadata service
to make calls back into the Neutron server.  The docs tell you where
the other side of the interface is found in the code, and where docs
are that give more info on the rules for changing them.

The second thing done in this patch is to scope this interface using a
messaging namespace.  Right now some plugins expose several interfaces
via the default namespace.  This effectively means they are a single
API and should be managed with a single version stream.  It's much
more managable to just treat these as separate interfaces and this
change makes that explicit and functionally true.  Now when a method
is invoked, the only classes considered for handling that request will
be ones marked with the right namespace.

Part of blueprint rpc-docs-and-namespaces.

Change-Id: I3330229bf85b01d50c90e9ca064ae5e0fae83509
neutron/agent/metadata/agent.py
neutron/api/rpc/handlers/metadata_rpc.py
neutron/common/constants.py