]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
ovs: remove several unneeded object attributes from setup_rpc()
authorIhar Hrachyshka <ihrachys@redhat.com>
Tue, 13 Oct 2015 16:11:29 +0000 (18:11 +0200)
committerIhar Hrachyshka <ihrachys@redhat.com>
Tue, 20 Oct 2015 15:32:18 +0000 (17:32 +0200)
commitd95283a731c3078c10173822e248c5f39be0b1fa
tree111ba73dbdddc9e1a663f52351cc59a69b050991
parent3854fd9af33a1ac256edf93e8cbcc62aef7bfb2b
ovs: remove several unneeded object attributes from setup_rpc()

It's currently not clear what the interactions and interdependencies
between existing attributes set inside setup_rpc() and other code are.
This complicates its perception. So reduce the complexity a bit by using
local variables instead of object attributes where applies; and moving
agent_id calculation out of setup_rpc() since it's not related to AMQP.

Change-Id: I6ad156a7dd686ab2a2349704a34385db1ee9681c
neutron/plugins/ml2/drivers/openvswitch/agent/ovs_neutron_agent.py