rearrange imports
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
#!/usr/bin/env python
|
||||
!/usr/bin/env python
|
||||
# vim: tabstop=4 shiftwidth=4 softtabstop=4
|
||||
|
||||
# Copyright 2010 United States Government as represented by the
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
# Copyright 2011 OpenStack LLC.
|
||||
# Copyright 2011 Nicira, Inc.
|
||||
# All Rights Reserved.
|
||||
#
|
||||
# Licensed under the Apache License, Version 2.0 (the "License"); you may
|
||||
@@ -13,14 +13,13 @@
|
||||
# License for the specific language governing permissions and limitations
|
||||
# under the License.
|
||||
|
||||
import datetime
|
||||
|
||||
from sqlalchemy import *
|
||||
from migrate import *
|
||||
|
||||
from nova import log as logging
|
||||
from nova import utils
|
||||
|
||||
|
||||
meta = MetaData()
|
||||
|
||||
# Add priority column to networks table
|
||||
|
||||
@@ -15,12 +15,13 @@
|
||||
# License for the specific language governing permissions and limitations
|
||||
# under the License.
|
||||
|
||||
import math
|
||||
from netaddr import IPNetwork
|
||||
|
||||
from nova import exception
|
||||
from nova import ipv6
|
||||
from nova import log as logging
|
||||
from nova import utils
|
||||
import math
|
||||
from netaddr import IPNetwork
|
||||
|
||||
|
||||
LOG = logging.getLogger("network.quantum.fake")
|
||||
|
||||
@@ -20,10 +20,10 @@ from nova import exception
|
||||
from nova import flags
|
||||
from nova import log as logging
|
||||
from nova import manager
|
||||
from nova import utils
|
||||
from nova.network import manager
|
||||
from nova.network.quantum import quantum_connection
|
||||
from nova.network.quantum import fake
|
||||
from nova import utils
|
||||
|
||||
LOG = logging.getLogger("quantum_manager")
|
||||
|
||||
|
||||
@@ -19,6 +19,7 @@ import httplib
|
||||
import socket
|
||||
import urllib
|
||||
import json
|
||||
|
||||
from nova import flags
|
||||
|
||||
|
||||
|
||||
@@ -21,6 +21,7 @@ from nova import flags
|
||||
from nova import log as logging
|
||||
from nova.network.quantum import melange_connection
|
||||
|
||||
|
||||
LOG = logging.getLogger("quantum_melange_ipam")
|
||||
|
||||
FLAGS = flags.FLAGS
|
||||
|
||||
@@ -17,15 +17,15 @@
|
||||
|
||||
import math
|
||||
|
||||
#from nova import context
|
||||
from nova import db
|
||||
from nova import exception
|
||||
from nova import flags
|
||||
from nova import ipv6
|
||||
from nova import log as logging
|
||||
from nova import utils
|
||||
from nova.network import manager
|
||||
from nova.network.quantum import melange_connection as melange
|
||||
from nova import utils
|
||||
|
||||
|
||||
LOG = logging.getLogger("quantum_nova_ipam_lib")
|
||||
|
||||
|
||||
@@ -17,9 +17,9 @@
|
||||
|
||||
from nova import flags
|
||||
from nova import log as logging
|
||||
from nova.network.quantum import client as quantum_client
|
||||
from nova import utils
|
||||
|
||||
from nova.network.quantum.client import Client
|
||||
|
||||
LOG = logging.getLogger("nova.network.quantum")
|
||||
FLAGS = flags.FLAGS
|
||||
@@ -40,10 +40,10 @@ flags.DEFINE_string('quantum_default_tenant_id',
|
||||
class QuantumClientConnection:
|
||||
|
||||
def __init__(self):
|
||||
self.client = Client(FLAGS.quantum_connection_host,
|
||||
FLAGS.quantum_connection_port,
|
||||
format="json",
|
||||
logger=LOG)
|
||||
self.client = quantum_client.Client(FLAGS.quantum_connection_host,
|
||||
FLAGS.quantum_connection_port,
|
||||
format="json",
|
||||
logger=LOG)
|
||||
|
||||
def create_network(self, tenant_id, network_name):
|
||||
data = {'network': {'name': network_name}}
|
||||
|
||||
@@ -19,8 +19,8 @@ from nova import context
|
||||
from nova import db
|
||||
from nova import exception
|
||||
from nova import log as logging
|
||||
from nova import test
|
||||
from nova.network.quantum import manager as quantum_manager
|
||||
from nova import test
|
||||
|
||||
LOG = logging.getLogger('nova.tests.quantum_network')
|
||||
|
||||
|
||||
Reference in New Issue
Block a user