mirror of https://git.48k.eu/ogcp
src: Remove netdriver field in client form
Remove netdriver field from forms used to add or update a client. At the time of creating (or updating) a client, ogCP uses a hardcoded value for this field of the payload. This field is not used by oglive in any way, remove it.master
parent
739ac075dc
commit
3a0cdbda5a
|
@ -113,8 +113,6 @@ class ClientDetailsForm(FlaskForm):
|
|||
choices=[('eth0', 'eth0'),
|
||||
('eth1', 'eth1'),
|
||||
('eth2', 'eth2')])
|
||||
netdriver = SelectField(label=_l('Driver'),
|
||||
choices=[('generic', 'generic')])
|
||||
repo = SelectField(label=_l('Repository'),
|
||||
choices=[(1, 'Default')])
|
||||
room = SelectField(label=_l('Room'))
|
||||
|
|
|
@ -865,7 +865,7 @@ def action_client_add():
|
|||
"mac": form.mac.data,
|
||||
"maintenance": form.maintenance.data,
|
||||
"name": form.name.data,
|
||||
"netdriver": form.netdriver.data,
|
||||
"netdriver": "generic",
|
||||
"netiface": form.netiface.data,
|
||||
"netmask": form.netmask.data,
|
||||
"remote": form.remote.data,
|
||||
|
|
Loading…
Reference in New Issue