change variable name from plugin into agent

Variable for agent instance should be named as 'agent'
instead of plugin.

Change-Id: I9bb2245049c6d6084284c2311a4c6aa2ad880bc1
Closes-Bug: #1259431
This commit is contained in:
Yong Sheng Gong 2013-12-10 14:38:35 +08:00
parent 8495be4a9f
commit 960c0168b3
2 changed files with 6 additions and 6 deletions

View File

@ -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)

View 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)