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")