mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-05-13 10:30:16 +00:00
Fixed regression on editing Ethernet connections
During implementation of PPPoE based connections I added Username and Password fields. This fileds are only required when editing a PPPoE connection.
This commit is contained in:
parent
d79437d2a2
commit
5eda78a318
@ -80,10 +80,12 @@ def edit(request, uuid):
|
|||||||
name = form.cleaned_data['name']
|
name = form.cleaned_data['name']
|
||||||
interface = form.cleaned_data['interface']
|
interface = form.cleaned_data['interface']
|
||||||
zone = form.cleaned_data['zone']
|
zone = form.cleaned_data['zone']
|
||||||
ipv4_method = form.cleaned_data['ipv4_method']
|
if connection.get_connection_type() == 'pppoe':
|
||||||
ipv4_address = form.cleaned_data['ipv4_address']
|
username = form.cleaned_data['username']
|
||||||
username = form.cleaned_data['username']
|
password = form.cleaned_data['password']
|
||||||
password = form.cleaned_data['password']
|
else:
|
||||||
|
ipv4_method = form.cleaned_data['ipv4_method']
|
||||||
|
ipv4_address = form.cleaned_data['ipv4_address']
|
||||||
|
|
||||||
if connection.get_connection_type() == '802-3-ethernet':
|
if connection.get_connection_type() == '802-3-ethernet':
|
||||||
network.edit_ethernet_connection(
|
network.edit_ethernet_connection(
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user