From 5111733b93adb4f64c77caa6baf74aca987ce897 Mon Sep 17 00:00:00 2001 From: Alejandro Sirgo Rica Date: Thu, 4 Jul 2024 11:15:57 +0200 Subject: 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 --- ogcp/forms/action_forms.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ogcp/forms') 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): -- cgit v1.2.3-18-g5258