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 <patrick.bonnell@windriver.com>
This commit is contained in:
Patrick Bonnell 2018-09-23 23:38:12 -04:00
parent 29637dcf6e
commit 40930b43d9
1 changed files with 0 additions and 2 deletions

View File

@ -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