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.
master
Alejandro Sirgo Rica 2024-06-05 09:36:46 +02:00
parent 462e6fb0ad
commit 4c97b671aa
1 changed files with 3 additions and 1 deletions

View File

@ -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):