Remove unused method "get_ovsdb_connection"
Trivial-Fix Change-Id: I7c6fe4c3a6ba82c0b660042733f7df396e068855
This commit is contained in:
parent
08ff64034e
commit
5b66259bb8
|
@ -32,9 +32,6 @@ from oslo_config import cfg
|
|||
from oslo_log import log
|
||||
from oslo_utils import netutils
|
||||
from oslo_utils import strutils
|
||||
from ovs.db import idl
|
||||
from ovsdbapp.backend.ovs_idl import connection
|
||||
from ovsdbapp.backend.ovs_idl import idlutils
|
||||
from ovsdbapp import constants as ovsdbapp_const
|
||||
|
||||
from neutron._i18n import _
|
||||
|
@ -421,16 +418,6 @@ def get_port_subnet_ids(port):
|
|||
return [f['subnet_id'] for f in fixed_ips]
|
||||
|
||||
|
||||
def get_ovsdb_connection(connection_string, schema, timeout, tables=None):
|
||||
helper = idlutils.get_schema_helper(connection_string, schema)
|
||||
if tables:
|
||||
for table in tables:
|
||||
helper.register_table(table)
|
||||
else:
|
||||
helper.register_all()
|
||||
return connection.Connection(idl.Idl(connection_string, helper), timeout)
|
||||
|
||||
|
||||
def get_method_class(method):
|
||||
if not inspect.ismethod(method):
|
||||
return
|
||||
|
|
Loading…
Reference in New Issue