From 4c97b671aaa00049a2dee88038a918f82ced1c83 Mon Sep 17 00:00:00 2001 From: Alejandro Sirgo Rica Date: Wed, 5 Jun 2024 09:36:46 +0200 Subject: forms: add support for UNICAST image restore Add UNICAST and UNICAST-DIRECT to the image restore form. UNICAST-DIRECT will transfer the images through a samba share and proceed with the restore process without using any cache partition. UNICAST will try to first copy the image to the cache partition and generate the full.sum file. Then the restore process is executed. --- ogcp/forms/action_forms.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'ogcp') diff --git a/ogcp/forms/action_forms.py b/ogcp/forms/action_forms.py index 34f06b4..bb66881 100644 --- a/ogcp/forms/action_forms.py +++ b/ogcp/forms/action_forms.py @@ -104,7 +104,9 @@ class ImageRestoreForm(FlaskForm): partition = SelectField(label=_l('Partition'), choices=[]) image = SelectField(label=_l('Image'), choices=[]) method = SelectField(label=_l('Method'), - choices=[('TIPTORRENT', 'TIPTORRENT')]) + choices=[('TIPTORRENT', 'TIPTORRENT'), + ('UNICAST', 'UNICAST'), + ('UNICAST-DIRECT', 'UNICAST-DIRECT')]) restore = SubmitField(label=_l('Restore')) class RepoForm(FlaskForm): -- cgit v1.2.3-18-g5258