Clean import in code

This patch set modified some lines of code,
which import object, it should import module as
Openstack's recommendation [1].

[1] http://docs.openstack.org/developer/hacking/#imports

Change-Id: I31ecf6a295ffdd089b3333dcec762483e7c081ad
This commit is contained in:
Nam Nguyen Hoai 2016-08-23 17:27:46 +07:00
parent 14ebfb527d
commit 7e5d12d49d
1 changed files with 2 additions and 3 deletions

View File

@ -19,8 +19,7 @@ from neutron_lib import constants as n_const
from oslo_utils import encodeutils
from neutron.cmd.eventlet.plugins.ovs_neutron_agent import main as _main
from neutron.plugins.ml2.drivers.openvswitch.agent.ovs_neutron_agent \
import OVSNeutronAgent
from neutron.plugins.ml2.drivers.openvswitch.agent import ovs_neutron_agent
def get_tunnel_name_full(cls, network_type, local_ip, remote_ip):
@ -41,7 +40,7 @@ def get_tunnel_name_full(cls, network_type, local_ip, remote_ip):
return '%s-%s-%s' % (network_type, source_ip_hash, remote_ip_hash)
OVSNeutronAgent.get_tunnel_name = get_tunnel_name_full
ovs_neutron_agent.OVSNeutronAgent.get_tunnel_name = get_tunnel_name_full
def main():