diff options
Diffstat (limited to 'ogcp/views.py')
-rw-r--r-- | ogcp/views.py | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/ogcp/views.py b/ogcp/views.py index c00098f..cf162be 100644 --- a/ogcp/views.py +++ b/ogcp/views.py @@ -881,8 +881,6 @@ def action_client_info(): form.remote.render_kw = {'readonly': True} form.maintenance.data = db_client['maintenance'] form.maintenance.render_kw = {'readonly': True} - form.netiface.data = db_client['netiface'] - form.netiface.render_kw = {'readonly': True} repositories = get_repositories(server) form.repo.choices = [(repo["id"], repo["name"]) for repo in repositories if db_client['repo_id'] == repo["id"]] @@ -945,7 +943,7 @@ def action_client_update(): "serial_number": form.serial_number.data, "netdriver": "generic", "maintenance": form.maintenance.data, - "netiface": form.netiface.data, + "netiface": "eth0", "repo_id": int(form.repo.data), "netmask": "0", "remote": form.remote.data, @@ -984,7 +982,6 @@ def action_client_update(): form.livedir.render_kw = {'readonly': True} form.remote.data = db_client['remote'] form.maintenance.data = db_client['maintenance'] - form.netiface.data = db_client['netiface'] current_mode = db_client['boot'] r = server.get('/mode') @@ -1110,7 +1107,7 @@ def action_client_add(): "maintenance": form.maintenance.data, "name": form.name.data, "netdriver": "generic", - "netiface": form.netiface.data, + "netiface": "eth0", "netmask": "0", "remote": form.remote.data, "repo_id": int(form.repo.data), |