]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commitdiff
change variable name from plugin into agent
authorYong Sheng Gong <gongysh@unitedstack.com>
Tue, 10 Dec 2013 06:38:35 +0000 (14:38 +0800)
committerYong Sheng Gong <gongysh@unitedstack.com>
Tue, 10 Dec 2013 06:38:35 +0000 (14:38 +0800)
Variable for agent instance should be named as 'agent'
instead of plugin.

Change-Id: I9bb2245049c6d6084284c2311a4c6aa2ad880bc1
Closes-Bug: #1259431

neutron/plugins/linuxbridge/agent/linuxbridge_neutron_agent.py
neutron/plugins/openvswitch/agent/ovs_neutron_agent.py

index cd63c64f8df109942a992d4b139fbc08200eb420..1eac636e2c30a5eef62e3e47d8f9912fb33de1b8 100755 (executable)
@@ -991,11 +991,11 @@ def main():
 
     polling_interval = cfg.CONF.AGENT.polling_interval
     root_helper = cfg.CONF.AGENT.root_helper
-    plugin = LinuxBridgeNeutronAgentRPC(interface_mappings,
-                                        polling_interval,
-                                        root_helper)
+    agent = LinuxBridgeNeutronAgentRPC(interface_mappings,
+                                       polling_interval,
+                                       root_helper)
     LOG.info(_("Agent initialized successfully, now running... "))
-    plugin.daemon_loop()
+    agent.daemon_loop()
     sys.exit(0)
 
 
index b52bdb56aff62800c6dbd23cc4aa0d8853dfa305..cf2243e8a6625eb2235f9544602c5f54f570b081 100644 (file)
@@ -1285,11 +1285,11 @@ def main():
         # commands target xen dom0 rather than domU.
         cfg.CONF.set_default('ip_lib_force_root', True)
 
-    plugin = OVSNeutronAgent(**agent_config)
+    agent = OVSNeutronAgent(**agent_config)
 
     # Start everything.
     LOG.info(_("Agent initialized successfully, now running... "))
-    plugin.daemon_loop()
+    agent.daemon_loop()
     sys.exit(0)