fakevm: refactor create/delete probe and multi node emulation

fakevm_agent_plugin_base.py:
  - refactor create/delete probe
  - add common methods for multi node emulation

fakevm_agent_ryu.py:
  - use common methods for multi node emulation

fakevm_agent_ovs.py:
  - ensure multi node emulation
  - add support for provider network extension

fakevm_agent_lb.py:
  - refactor create/delete probe
fakevm: vif driver.

2013-06-17 17:26:09    DEBUG [quantum.fakevm.fakevm_agent] plug i-y dd4de8a1-5eee-4f9a-97c9-e99ebe0f21d2 9f8249a6-b1f4-413e-b00e-2bd3c3020a28 fa:16:3e:8f:14:9a None
2013-06-17 17:26:09    DEBUG [quantum.agent.linux.utils] Running command: ['python', '/opt/stack/quantum/quantum/fakevm/vif.py', '--config-file', '/etc/nova/nova.conf', 'plug', "{'host': 'vtd', 'uuid': u'i-y'}", "({'bridge': 'br-int', 'id': u'dd4de8a1-5eee-4f9a-97c9-e99ebe0f21d2'}, {'ovs_interfaceid': u'9f8249a6-b1f4-413e-b00e-2bd3c3020a28', 'vif_type': 'ovs', 'vif_uuid': u'9f8249a6-b1f4-413e-b00e-2bd3c3020a28', 'mac': u'fa:16:3e:8f:14:9a'})"]
2013-06-17 17:26:09    DEBUG [quantum.agent.linux.utils]
Command: ['python', '/opt/stack/quantum/quantum/fakevm/vif.py', '--config-file', '/etc/nova/nova.conf', 'plug', "{'host': 'vtd', 'uuid': u'i-y'}", "({'bridge': 'br-int', 'id': u'dd4de8a1-5eee-4f9a-97c9-e99ebe0f21d2'}, {'ovs_interfaceid': u'9f8249a6-b1f4-413e-b00e-2bd3c3020a28', 'vif_type': 'ovs', 'vif_uuid': u'9f8249a6-b1f4-413e-b00e-2bd3c3020a28', 'mac': u'fa:16:3e:8f:14:9a'})"]
Exit code: 1
Stdout: ''
Stderr: 'Traceback (most recent call last):\n  File "/opt/stack/quantum/quantum/fakevm/vif.py", line 25, in <module>\n    from nova.network import model\n  File "/opt/stack/nova/nova/network/model.py", line 23, in <module>\n    from nova import exception\n  File "/opt/stack/nova/nova/exception.py", line 104, in <module>\n    class NovaException(Exception):\n  File "/opt/stack/nova/nova/exception.py", line 112, in NovaException\n    message = _("An unknown exception occurred.")\nNameError: name \'_\' is not defined\n'
2013-06-17 17:26:09    ERROR [quantum.openstack.common.rpc.amqp] Exception during message handling
Traceback (most recent call last):
  File "/opt/stack/quantum/quantum/openstack/common/rpc/amqp.py", line 433, in _process_data
    **args)
  File "/opt/stack/quantum/quantum/openstack/common/rpc/dispatcher.py", line 148, in dispatch
    return getattr(proxyobj, method)(ctxt, **kwargs)
  File "/opt/stack/quantum/quantum/fakevm/fakevm_agent.py", line 89, in plug
    bridge_name)
  File "/opt/stack/quantum/quantum/fakevm/fakevm_agent_plugin_base.py", line 191, in plug
    self._vif_plug(instance_id, network_id, vif_uuid, mac, bridge_name)
  File "/opt/stack/quantum/quantum/fakevm/fakevm_agent_plugin_base.py", line 140, in _vif_plug
    self._exec_vif_wrapper(cmd)
  File "/opt/stack/quantum/quantum/fakevm/fakevm_agent_plugin_base.py", line 133, in _exec_vif_wrapper
    return utils.execute(cmd)
  File "/opt/stack/quantum/quantum/agent/linux/utils.py", line 61, in execute
    raise RuntimeError(m)
RuntimeError:
Command: ['python', '/opt/stack/quantum/quantum/fakevm/vif.py', '--config-file', '/etc/nova/nova.conf', 'plug', "{'host': 'vtd', 'uuid': u'i-y'}", "({'bridge': 'br-int', 'id': u'dd4de8a1-5eee-4f9a-97c9-e99ebe0f21d2'}, {'ovs_interfaceid': u'9f8249a6-b1f4-413e-b00e-2bd3c3020a28', 'vif_type': 'ovs', 'vif_uuid': u'9f8249a6-b1f4-413e-b00e-2bd3c3020a28', 'mac': u'fa:16:3e:8f:14:9a'})"]
Exit code: 1

Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
fakevm: remove unnecessary define and method
fakevm: rpc: fix log level
fakevm: change _get_vif_br_name() to abstract method
fakevm: add logging vif args
fakevm: i18n