# under the License.
import mock
+import platform
import random
import string
import warnings
def get_random_integer(range_begin=0, range_end=1000):
return random.randint(range_begin, range_end)
+
+
+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
from oslo_utils import importutils
import six
from sqlalchemy import orm
+import testtools
from testtools import matchers
import webob.exc
ipv6_ra_mode=constants.IPV6_SLAAC,
ipv6_address_mode=constants.IPV6_SLAAC)
+ @testtools.skipIf(tools.is_bsd(), 'bug/1484837')
def test_create_subnet_ipv6_pd_gw_values(self):
cidr = constants.PROVISIONAL_IPV6_PD_PREFIX
# Gateway is last IP in IPv6 DHCPv6 Stateless subnet
cidr=cidr, ip_version=6,
allocation_pools=allocation_pools)
+ @testtools.skipIf(tools.is_bsd(), 'bug/1484837')
def test_create_subnet_with_v6_pd_allocation_pool(self):
gateway_ip = '::1'
cidr = constants.PROVISIONAL_IPV6_PD_PREFIX