Example #1
0
class JobForm(FlaskForm):
    id = HiddenField()
    boolean_fields = HiddenField(default=('send_notification,'
                                          'multiprocessing,'
                                          'use_workflow_targets,'
                                          'push_to_git'))
    list_fields = HiddenField(default='devices,pools')
    name = StringField()
    description = StringField()
    devices = MultipleObjectField('Device')
    multiprocessing = BooleanField()
    max_processes = IntegerField('Maximum number of processes', default=50)
    credentials = SelectField(choices=(('device', 'Device Credentials'),
                                       ('user', 'User Credentials')))
    pools = MultipleObjectField('Pool')
    waiting_time = IntegerField('Waiting time (in seconds)', default=0)
    send_notification = BooleanField()
    send_notification_method = SelectField(choices=(
        ('mail_feedback_notification', 'Mail'),
        ('slack_feedback_notification', 'Slack'),
        ('mattermost_feedback_notification', 'Mattermost'),
    ))
    number_of_retries = IntegerField('Number of retries', default=0)
    time_between_retries = IntegerField('Time between retries (in seconds)',
                                        default=10)
    vendor = StringField()
    operating_system = StringField()
Example #2
0
class JobForm(FlaskForm):
    id = HiddenField()
    boolean_fields = HiddenField(default=("display_only_failed_nodes,"
                                          "send_notification,"
                                          "multiprocessing,"
                                          "use_workflow_targets,"
                                          "push_to_git"))
    list_fields = HiddenField(default="devices,pools")
    name = StringField()
    description = StringField()
    devices = MultipleObjectField("Device")
    multiprocessing = BooleanField()
    max_processes = IntegerField("Maximum number of processes", default=50)
    credentials = SelectField(choices=(("device", "Device Credentials"),
                                       ("user", "User Credentials")))
    pools = MultipleObjectField("Pool")
    waiting_time = IntegerField("Waiting time (in seconds)", default=0)
    send_notification = BooleanField()
    send_notification_method = SelectField(choices=(
        ("mail_feedback_notification", "Mail"),
        ("slack_feedback_notification", "Slack"),
        ("mattermost_feedback_notification", "Mattermost"),
    ))
    display_only_failed_nodes = BooleanField()
    mail_recipient = StringField()
    number_of_retries = IntegerField("Number of retries", default=0)
    time_between_retries = IntegerField("Time between retries (in seconds)",
                                        default=10)
    vendor = StringField()
    operating_system = StringField()
Example #3
0
class AddUser(FlaskForm):
    list_fields = HiddenField(default="permissions")
    id = HiddenField()
    name = StringField()
    password = PasswordField()
    email = StringField()
    permission_choices = [(p, p) for p in user_permissions]
    permissions = SelectMultipleField(choices=permission_choices)
    pools = MultipleObjectField("Pool")
Example #4
0
class AddJobForm(FlaskForm):
    list_fields = HiddenField(default='add_jobs')
    add_jobs = MultipleObjectField('Job')
Example #5
0
File: forms.py Project: usafak/eNMS
class LogAutomationForm(FlaskForm):
    id = HiddenField()
    list_fields = HiddenField(default='jobs')
    name = StringField()
    jobs = MultipleObjectField('Job')
Example #6
0
class DeviceAutomationForm(FlaskForm):
    list_fields = HiddenField(default='jobs')
    jobs = MultipleObjectField('Job')
Example #7
0
class PoolObjectsForm(FlaskForm):
    list_fields = HiddenField(default='devices,links')
    devices = MultipleObjectField('Device')
    links = MultipleObjectField('Link')
Example #8
0
class AddJobForm(FlaskForm):
    list_fields = HiddenField(default="add_jobs")
    add_jobs = MultipleObjectField("Job")
Example #9
0
File: forms.py Project: fublu/eNMS
class PoolObjectsForm(FlaskForm):
    list_fields = HiddenField(default="devices,links")
    devices = MultipleObjectField("Device")
    links = MultipleObjectField("Link")
Example #10
0
File: forms.py Project: fublu/eNMS
class DeviceAutomationForm(FlaskForm):
    list_fields = HiddenField(default="jobs")
    jobs = MultipleObjectField("Job")
Example #11
0
class PoolRestrictionForm(FlaskForm):
    pools = MultipleObjectField("Pool")
Example #12
0
File: forms.py Project: usafak/eNMS
class PollerForm(FlaskForm):
    devices = MultipleObjectField('Device')
    pools = MultipleObjectField('Pool')
    polling_frequency = IntegerField(default=3600)
    remote_git_repository = StringField()