summaryrefslogtreecommitdiffstats
path: root/ogcp/forms/action_forms.py
diff options
context:
space:
mode:
authorAlejandro Sirgo Rica <asirgo@soleta.eu>2024-06-05 09:36:46 +0200
committerAlejandro Sirgo Rica <asirgo@soleta.eu>2024-06-05 09:36:46 +0200
commit4c97b671aaa00049a2dee88038a918f82ced1c83 (patch)
tree6a24656e8273e73dc3eb913deb1869ab2d52b6e3 /ogcp/forms/action_forms.py
parent462e6fb0adbfc475765da950679a9a9683cda27a (diff)
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.
Diffstat (limited to 'ogcp/forms/action_forms.py')
-rw-r--r--ogcp/forms/action_forms.py4
1 files changed, 3 insertions, 1 deletions
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):