From 40930b43d98177d66e60d2394925eecc4bc85a38 Mon Sep 17 00:00:00 2001 From: Patrick Bonnell Date: Sun, 23 Sep 2018 23:38:12 -0400 Subject: [PATCH] Interface form no longer needs network type This commit stops the network type from being passed to the interface create/update api. Closes-Bug: 1793779 Change-Id: I7ab5a7ee01399a0cce68b055626ce1bad492a191 Signed-off-by: Patrick Bonnell --- .../dashboards/admin/inventory/interfaces/forms.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/starlingx-dashboard/starlingx-dashboard/starlingx_dashboard/dashboards/admin/inventory/interfaces/forms.py b/starlingx-dashboard/starlingx-dashboard/starlingx_dashboard/dashboards/admin/inventory/interfaces/forms.py index 2c597977..37eb5889 100644 --- a/starlingx-dashboard/starlingx-dashboard/starlingx_dashboard/dashboards/admin/inventory/interfaces/forms.py +++ b/starlingx-dashboard/starlingx-dashboard/starlingx_dashboard/dashboards/admin/inventory/interfaces/forms.py @@ -561,7 +561,6 @@ class AddInterface(forms.SelfHandlingForm): network_ids.append(str(network.id)) network_types.append(network.type) data['networks'] = network_ids - data['networktype'] = data['ifclass'] if any(network_type in ['mgmt', 'infra', 'oam'] for network_type in network_types): @@ -775,7 +774,6 @@ class UpdateInterface(AddInterface): else: for i in interface_networks: interface_networks_to_remove.append(i.uuid) - cleaned_data['networktype'] = ifclass cleaned_data['networks'] = network_ids cleaned_data['networks_to_add'] = networks_to_add cleaned_data['interface_networks_to_remove'] = interface_networks_to_remove