Merge "Interface form no longer needs network type"

This commit is contained in:
Zuul 2018-09-25 14:57:35 +00:00 committed by Gerrit Code Review
commit 6a679f889c
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