]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
Scope dhcp rpc api using a messaging namespace
authorRussell Bryant <rbryant@redhat.com>
Tue, 9 Dec 2014 17:30:53 +0000 (17:30 +0000)
committerRussell Bryant <rbryant@redhat.com>
Fri, 19 Dec 2014 13:33:48 +0000 (13:33 +0000)
commit4a69b69e58cddddf8ab8ef607b12eb9e1c0709ab
tree30858fdd45281f7f2fd3e304fd32c01f870f9441
parent69f01aab164f9a882d016d57770cfdb116a84d12
Scope dhcp rpc api using a messaging namespace

This patch updates the rpc API used by the DHCP agent to make calls
back into the neutron plugin to use the 'dhcp' namespace instead of
the default namespace.  The reason is that this API is exposed over
the 'q-plugin' topic along with several other interfaces.  Without the
use of namespaces, all of the interfaces are effectively treated as
one by oslo.messaging.  When a namespace is used, the interface can be
versioned independently and when a method is called, the only class
considered for fulfilling the request is the one that claims to
implement the 'dhcp' namespace.

While we're here, add documentation to both the client and server side
of this interface that indicates where the other side is located.

Part of blueprint rpc-docs-and-namespaces.

Change-Id: I9e56aa34fc560ae3fc749c51788436e32179d0a1
neutron/agent/dhcp_agent.py
neutron/api/rpc/handlers/dhcp_rpc.py
neutron/common/constants.py