'default': True,
'convert_to': convert_to_boolean,
'is_visible': True},
- 'ipv6_ra_mode': {'allow_post': True, 'allow_put': True,
+ # NOTE: The following two attributes will be made visible once IPv6
+ # will be fully supported
+ 'ipv6_ra_mode': {'allow_post': False, 'allow_put': False,
'default': ATTR_NOT_SPECIFIED,
'validate': {'type:values': constants.IPV6_MODES},
- 'is_visible': True},
- 'ipv6_address_mode': {'allow_post': True, 'allow_put': True,
+ 'is_visible': False},
+ 'ipv6_address_mode': {'allow_post': False, 'allow_put': False,
'default': ATTR_NOT_SPECIFIED,
'validate': {'type:values':
constants.IPV6_MODES},
- 'is_visible': True},
+ 'is_visible': False},
SHARED: {'allow_post': False,
'allow_put': False,
'default': False,
'gateway_ip': s['gateway_ip'],
'shared': network.shared}
if s['ip_version'] == 6 and s['enable_dhcp']:
- if attributes.is_attr_set(s['ipv6_ra_mode']):
+ if attributes.is_attr_set(s.get('ipv6_ra_mode')):
args['ipv6_ra_mode'] = s['ipv6_ra_mode']
- if attributes.is_attr_set(s['ipv6_address_mode']):
+ if attributes.is_attr_set(s.get('ipv6_address_mode')):
args['ipv6_address_mode'] = s['ipv6_address_mode']
subnet = models_v2.Subnet(**args)
import mock
from oslo.config import cfg
from testtools import matchers
+from testtools import testcase
import webob.exc
import neutron
res = subnet_req.get_response(self.api)
self.assertEqual(res.status_int, webob.exc.HTTPClientError.code)
+ @testcase.skip("Skipped until bug 1304093 is fixed")
def test_create_subnet_ipv6_attributes(self):
gateway_ip = 'fe80::1'
cidr = 'fe80::/80'
ipv6_ra_mode=mode,
ipv6_address_mode=mode)
+ @testcase.skip("Skipped until bug 1304093 is fixed")
def test_create_subnet_ipv6_attributes_no_dhcp_enabled(self):
gateway_ip = 'fe80::1'
cidr = 'fe80::/80'
self.assertEqual(ctx_manager.exception.code,
webob.exc.HTTPClientError.code)
+ @testcase.skip("Skipped until bug 1304093 is fixed")
def test_create_subnet_ipv6_single_attribute_set(self):
gateway_ip = 'fe80::1'
cidr = 'fe80::/80'
self.assertEqual(res.status_int,
webob.exc.HTTPConflict.code)
+ @testcase.skip("Skipped until bug 1304093 is fixed")
def test_update_subnet_ipv6_attributes(self):
with self.subnet(ip_version=6, cidr='fe80::/80',
ipv6_ra_mode=constants.IPV6_SLAAC,
self.assertEqual(res['subnet']['ipv6_address_mode'],
data['subnet']['ipv6_address_mode'])
+ @testcase.skip("Skipped until bug 1304093 is fixed")
def test_update_subnet_ipv6_inconsistent_ra_attribute(self):
with self.subnet(ip_version=6, cidr='fe80::/80',
ipv6_ra_mode=constants.IPV6_SLAAC,
self.assertEqual(res.status_int,
webob.exc.HTTPClientError.code)
+ @testcase.skip("Skipped until bug 1304093 is fixed")
def test_update_subnet_ipv6_inconsistent_address_attribute(self):
with self.subnet(ip_version=6, cidr='fe80::/80',
ipv6_ra_mode=constants.IPV6_SLAAC,
self.assertEqual(res.status_int,
webob.exc.HTTPClientError.code)
+ @testcase.skip("Skipped until bug 1304093 is fixed")
def test_update_subnet_ipv6_inconsistent_enable_dhcp(self):
with self.subnet(ip_version=6, cidr='fe80::/80',
ipv6_ra_mode=constants.IPV6_SLAAC,