Don't pass read only attributes on neutron update
When making calls to neutron to update an IPv6 network Horizon is passing read only attributes which fails, making v6 subnets uneditable. Correct the view logic to not include read only attrbutes on an update. Change-Id: I219337b54c1fc55c8012ba63dd57fc1bb00bc922 Closes-Bug: 1459446
This commit is contained in:
parent
ae70699275
commit
55802f7b21
@ -389,9 +389,9 @@ class CreateNetwork(workflows.Workflow):
|
||||
if int(data['ip_version']) == 6:
|
||||
ipv6_modes = utils.get_ipv6_modes_attrs_from_menu(
|
||||
data['ipv6_modes'])
|
||||
if ipv6_modes[0] or is_update:
|
||||
if ipv6_modes[0] and is_create:
|
||||
params['ipv6_ra_mode'] = ipv6_modes[0]
|
||||
if ipv6_modes[1] or is_update:
|
||||
if ipv6_modes[1] and is_create:
|
||||
params['ipv6_address_mode'] = ipv6_modes[1]
|
||||
if data['allocation_pools']:
|
||||
pools = [dict(zip(['start', 'end'], pool.strip().split(',')))
|
||||
|
Loading…
Reference in New Issue
Block a user