diff options
| author | ckonstanski <kostcarl@isu.edu> | 2026-07-30 18:17:14 -0600 |
|---|---|---|
| committer | ckonstanski <kostcarl@isu.edu> | 2026-07-30 18:17:14 -0600 |
| commit | 640ff61422bc0ee3966941b93d9889ddbbd38d77 (patch) | |
| tree | abf1c08f5d38ee53ec8b29dc4f425722517505e6 /src/caas/forms.py | |
| parent | 22dae02a86c1fce71091bfa5289cf99abba1b217 (diff) | |
Diffstat (limited to 'src/caas/forms.py')
| -rw-r--r-- | src/caas/forms.py | 110 |
1 files changed, 110 insertions, 0 deletions
diff --git a/src/caas/forms.py b/src/caas/forms.py new file mode 100644 index 0000000..d485ee6 --- /dev/null +++ b/src/caas/forms.py @@ -0,0 +1,110 @@ +from django import forms + + +class CiqUploadForm(forms.Form): + filehandle = forms.FileField(label = "CIQ (in CSV format with header rows deleted)") + assign_parent = forms.BooleanField(label = "Assign subclouds to central controllers?", required = False) + + +class CiqUpload2Form(forms.Form): + filehandle = forms.FileField(label = "CIQ (in CSV format, servers over CC capacity will be not be assigned parents, servers with parents won't be affected)") + + +class CiqAssignOrphanSubcloudsForm(forms.Form): + filehandle = forms.FileField(label = "CIQ (in CSV format, servers without parents will be assigned to new controllers if any)") + + +class PasswordUploadForm(forms.Form): + filehandle = forms.FileField(label = "Password CSV (with header rows deleted)") + + +class SerialNumberForm(forms.Form): + vendor = forms.CharField(label = "Vendor") + serial_number = forms.CharField(label = "Serial number") + ilo_host_address = forms.CharField(label = "BMC IP address") + + +class AutoremediateForm(forms.Form): + ilo_host_address_list = forms.CharField(label = "BMC IP addresses separated by space") + + +class DnsForm(forms.Form): + ilo_host_address = forms.CharField(label = "BMC IP address") + + +class QueueCustomForm(forms.Form): + key = forms.CharField(label = "key") + playbook_key = forms.CharField(label = "playbook_key") + target = forms.CharField(label = "target") + cluster_name = forms.CharField(label = "cluster-name (optional)") + + +class MacAddressForm(forms.Form): + ilo_host_address = forms.CharField(label = "BMC IP address") + pxe_mac_address = forms.CharField(label = "BMC MAC address") + intel_nic_firmware_version = forms.CharField(label = "Intel NIC firmware version") + + +class AdminPasswordForm(forms.Form): + ilo_host_address = forms.CharField(label = "BMC IP address") + icinga_poll_status = forms.CharField(label = "Icinga poll status") + + +class NicFirmwareVersionForm(forms.Form): + ilo_host_address = forms.CharField(label = "BMC IP address") + nic_firmware_version = forms.CharField(label = "NIC firmware version") + + +class NicFirmwareUpgradeForm(forms.Form): + ilo_host_address_list = forms.CharField(label = "BMC IP addresses separated by space") + + +class NicFirmwareUpgradeNowForm(forms.Form): + ilo_host_address = forms.CharField(label = "BMC IP address") + icinga_poll_status = forms.CharField(label = "Icinga poll status") + + +class WrInstallForm(forms.Form): + ilo_host_address_list = forms.CharField(label = "BMC IP addresses separated by space") + + +class WrInstallNowForm(forms.Form): + ilo_host_address = forms.CharField(label = "BMC IP address") + icinga_poll_status = forms.CharField(label = "Icinga poll status") + + +class PushButtonForm(forms.Form): + pass + + +class WrRemediateForm(forms.Form): + cluster_name_list = forms.CharField(label = "Cluster names separated by space") + playbook = forms.ChoiceField(label = "Playbook dict key in settings.py", + choices = (("wr", "wr"), + ("wr_remediate", "wr_remediate"), + ("wr_wipedisk", "wr_wipedisk"), + ("wr_ptp", "wr_ptp"), + ("wr_ptp_config", "wr_ptp_config"), + ("wr_unlock", "wr_unlock"), + ("wr_reboot", "wr_reboot"), + ("wr_wrap", "wr_wrap"))) + + +class WrRebootForm(forms.Form): + namespace_name_list = forms.CharField(label = "Namespace names separated by space") + + +#created Oct30 2020 for Raj reboot testing delete later - Soda +class MockWrRebootForm(forms.Form): + namespace_name_list = forms.CharField(label = "Mock namespace names separated by space") + + +class PlaybookReportForm(forms.Form): + git = forms.CharField(label = "git remote") + playbook = forms.CharField(label = "Playbook dict key in settings.py") + target = forms.CharField(label = "Target") + failed = forms.CharField(label = "Failed count (0 or 1)") + + +class SubcloudForm(forms.Form): + fuze_id = forms.CharField(label = "FUZE ID") |
