]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commitdiff
Fix OVSQuantumAgent.port_update if not admin_state_up
authorAlessio Ababilov <aababilo@yahoo-inc.com>
Mon, 28 Jan 2013 15:23:38 +0000 (17:23 +0200)
committerAlessio Ababilov <aababilo@yahoo-inc.com>
Mon, 28 Jan 2013 15:47:23 +0000 (17:47 +0200)
self.agent does not exist. Use self.plugin_rpc, not
self.agent.plugin_rpc.

Change-Id: Id472c07f5a16891c040cc1afdcb457e1ef81beed

quantum/plugins/openvswitch/agent/ovs_quantum_agent.py [changed mode: 0755->0644]

old mode 100755 (executable)
new mode 100644 (file)
index a814895..6e058ee
@@ -215,8 +215,8 @@ class OVSQuantumAgent(object):
                                              self.agent_id)
         else:
             # update plugin about port status
-            self.agent.plugin_rpc.update_device_down(self.context, port['id'],
-                                                     self.agent.agent_id)
+            self.plugin_rpc.update_device_down(self.context, port['id'],
+                                               self.agent_id)
 
     def tunnel_update(self, context, **kwargs):
         LOG.debug(_("tunnel_update received"))