From 55802f7b21a62fea56f994650e1d52915b6547fe Mon Sep 17 00:00:00 2001 From: Doug Fish Date: Mon, 1 Jun 2015 20:02:15 +0000 Subject: [PATCH] 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 --- openstack_dashboard/dashboards/project/networks/workflows.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/openstack_dashboard/dashboards/project/networks/workflows.py b/openstack_dashboard/dashboards/project/networks/workflows.py index de0027139d..76dea92c2b 100644 --- a/openstack_dashboard/dashboards/project/networks/workflows.py +++ b/openstack_dashboard/dashboards/project/networks/workflows.py @@ -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(',')))