consume is_bsd from neutron-lib

The test tool function is_bsd() lives in neutron-lib.
This patch removes the function from neutron and uses it from
neutron-lib instead.

NeutronLibImpact

Change-Id: Ib48f7f1c89e215e9e94d62de31776c492f810f54
This commit is contained in:
Boden R 2019-03-06 14:52:56 -07:00
parent 590002728d
commit 7a285a7fcc
2 changed files with 1 additions and 13 deletions

View File

@ -15,7 +15,6 @@
import datetime
import os
import platform
import random
import time
import warnings
@ -334,17 +333,6 @@ def get_random_network_segment_range_network_type():
constants.TYPE_GENEVE])
def is_bsd():
"""Return True on BSD-based systems."""
system = platform.system()
if system == 'Darwin':
return True
if 'bsd' in system.lower():
return True
return False
def reset_random_seed():
# reset random seed to make sure other processes extracting values from RNG
# don't get the same results (useful especially when you then use the

View File

@ -30,6 +30,7 @@ from neutron_lib.db import api as db_api
from neutron_lib import exceptions as lib_exc
from neutron_lib import fixture
from neutron_lib.plugins import directory
from neutron_lib.tests import tools
from neutron_lib.utils import helpers
from neutron_lib.utils import net
from oslo_concurrency import lockutils
@ -63,7 +64,6 @@ from neutron.objects import router as l3_obj
from neutron.plugins.ml2.common import exceptions as ml2_exceptions
from neutron import policy
from neutron.tests import base
from neutron.tests import tools
from neutron.tests.unit.api import test_extensions
from neutron.tests.unit import testlib_api