summaryrefslogtreecommitdiffstats
path: root/ogcp/forms/action_forms.py
diff options
context:
space:
mode:
authorAlejandro Sirgo Rica <asirgo@soleta.eu>2024-07-04 11:15:57 +0200
committerlupoDharkael <izhe@hotmail.es>2024-07-09 09:52:07 +0200
commit5111733b93adb4f64c77caa6baf74aca987ce897 (patch)
treeef654ec0fb78495ecfea0d9814557145cce4df1e /ogcp/forms/action_forms.py
parentc333b3ee569dbf5a2fafd34a255fce35eeb0653c (diff)
ogcp: use csv as new format for import clients
Replace dhcpd format with the simpler csv format to configure the list of clients to import in /action/clients/import. Replace regex parsing with a simpler manual parsing. Improve error report. Example configuration: client_name1,94:c6:91:a6:25:1a,10.141.10.100 client_name2,94:c6:91:a6:25:1b,10.141.10.101
Diffstat (limited to 'ogcp/forms/action_forms.py')
-rw-r--r--ogcp/forms/action_forms.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/ogcp/forms/action_forms.py b/ogcp/forms/action_forms.py
index 3f4a8fc..c111940 100644
--- a/ogcp/forms/action_forms.py
+++ b/ogcp/forms/action_forms.py
@@ -160,7 +160,7 @@ class ImportClientsForm(FlaskForm):
server = HiddenField()
room = SelectField(label=_l('Room'))
repo = SelectField(label=_l('Repository'))
- dhcpd_conf = TextAreaField(label=_l('dhcpd configuration'))
+ client_conf = TextAreaField(label=_l('Client configuration'))
import_btn = SubmitField(label=_l('Import'))
class BootModeForm(FlaskForm):