コード例 #1
0
ファイル: forms.py プロジェクト: luckcyq/eNMS
class AdministrationForm(FlaskForm):
    boolean_fields = HiddenField(default='mattermost_verify_certificate')
    default_longitude = FloatField()
    default_latitude = FloatField()
    default_zoom_level = IntegerField()
    default_view = SelectField(choices=(
        ('2D', '2D View'),
        ('2DC', '2D Clusterized View'),
        ('3D', '3D View'),
    ))
    gotty_start_port = FloatField('Start port')
    gotty_end_port = FloatField('End port')
    mail_sender = StringField()
    mail_recipients = StringField()
    mattermost_url = StringField('Mattermost URL')
    mattermost_channel = StringField()
    mattermost_verify_certificate = BooleanField()
    slack_token = StringField()
    slack_channel = StringField()
    pool = ObjectField('Pool')
    categories = {
        'Geographical Parameters': ('default_longitude', 'default_latitude',
                                    'default_zoom_level', 'default_view'),
        'SSH Terminal Parameters': ('gotty_start_port', 'gotty_end_port'),
        'Notification Parameters':
        ('mail_sender', 'mail_recipients', 'mattermost_url',
         'mattermost_channel', 'mattermost_verify_certificate'),
        'Horizontal Scaling': ('pool', )
    }
コード例 #2
0
ファイル: forms.py プロジェクト: usafak/eNMS
class SchedulingForm(FlaskForm):
    id = HiddenField()
    start_date = StringField()
    end_date = StringField()
    name = StringField()
    description = StringField()
    frequency = IntegerField()
    job = ObjectField('Job')
コード例 #3
0
class SchedulingForm(FlaskForm):
    id = HiddenField()
    boolean_fields = HiddenField(default="is_active")
    is_active = BooleanField()
    start_date = StringField()
    end_date = StringField()
    name = StringField()
    description = StringField()
    frequency = IntegerField()
    job = ObjectField("Job")
コード例 #4
0
class AdministrationForm(FlaskForm):
    boolean_fields = HiddenField(default="mattermost_verify_certificate")
    cluster_scan_protocol = SelectField(choices=(("http", "HTTP"), ("https",
                                                                    "HTTPS")))
    cluster_scan_subnet = StringField()
    cluster_scan_timeout = FloatField()
    default_longitude = FloatField()
    default_latitude = FloatField()
    default_zoom_level = IntegerField()
    default_view = SelectField(choices=(("2D", "2D View"),
                                        ("2DC", "2D Clusterized View"),
                                        ("3D", "3D View")))
    git_configurations = StringField()
    git_automation = StringField()
    gotty_start_port = FloatField("Start port")
    gotty_end_port = FloatField("End port")
    mail_sender = StringField()
    mail_recipients = StringField()
    mattermost_url = StringField("Mattermost URL")
    mattermost_channel = StringField()
    mattermost_verify_certificate = BooleanField()
    slack_token = StringField()
    slack_channel = StringField()
    pool_filter = ObjectField("Pool")
    categories = {
        "Geographical Parameters": (
            "default_longitude",
            "default_latitude",
            "default_zoom_level",
            "default_view",
        ),
        "SSH Terminal Parameters": ("gotty_start_port", "gotty_end_port"),
        "Notification Parameters": (
            "mail_sender",
            "mail_recipients",
            "slack_token",
            "slack_channel",
            "mattermost_url",
            "mattermost_channel",
            "mattermost_verify_certificate",
        ),
        "Gitlab Parameters": ("git_automation", "git_configurations"),
        "Horizontal Scaling": ("pool_filter", ),
        "Cluster Management": (
            "cluster_scan_subnet",
            "cluster_scan_protocol",
            "cluster_scan_timeout",
        ),
    }
コード例 #5
0
class SchedulingForm(FlaskForm):
    id = HiddenField()
    boolean_fields = HiddenField(default="is_active")
    is_active = BooleanField()
    start_date = StringField()
    end_date = StringField()
    name = StringField()
    description = StringField()
    frequency = IntegerField()
    frequency_unit = SelectField(choices=(
        ("seconds", "Seconds"),
        ("minutes", "Minutes"),
        ("hours", "Hours"),
        ("days", "Days"),
    ))
    job = ObjectField("Job")
コード例 #6
0
ファイル: forms.py プロジェクト: paname75/eNMS
class AdministrationForm(FlaskForm):
    boolean_fields = HiddenField(default='mattermost_verify_certificate')
    cluster_scan_protocol = SelectField(choices=(('http', 'HTTP'), ('https',
                                                                    'HTTPS')))
    cluster_scan_subnet = StringField()
    cluster_scan_timeout = FloatField()
    default_longitude = FloatField()
    default_latitude = FloatField()
    default_zoom_level = IntegerField()
    default_view = SelectField(choices=(
        ('2D', '2D View'),
        ('2DC', '2D Clusterized View'),
        ('3D', '3D View'),
    ))
    git_configurations = StringField()
    git_automation = StringField()
    gotty_start_port = FloatField('Start port')
    gotty_end_port = FloatField('End port')
    mail_sender = StringField()
    mail_recipients = StringField()
    mattermost_url = StringField('Mattermost URL')
    mattermost_channel = StringField()
    mattermost_verify_certificate = BooleanField()
    slack_token = StringField()
    slack_channel = StringField()
    pool_filter = ObjectField('Pool')
    categories = {
        'Geographical Parameters': ('default_longitude', 'default_latitude',
                                    'default_zoom_level', 'default_view'),
        'SSH Terminal Parameters': ('gotty_start_port', 'gotty_end_port'),
        'Notification Parameters':
        ('mail_sender', 'mail_recipients', 'slack_token', 'slack_channel',
         'mattermost_url', 'mattermost_channel',
         'mattermost_verify_certificate'),
        'Gitlab Parameters': ('git_automation', 'git_configurations'),
        'Horizontal Scaling': ('pool_filter', ),
        'Cluster Management': ('cluster_scan_subnet', 'cluster_scan_protocol',
                               'cluster_scan_timeout')
    }
コード例 #7
0
class WorkflowBuilderForm(FlaskForm):
    workflow = ObjectField('Workflow')
コード例 #8
0
ファイル: forms.py プロジェクト: KuanYuChen/eNMS
class AddLink(AddObjectForm):
    link_types = [subtype for subtype in link_subtypes.items()]
    subtype = SelectField(choices=link_types)
    source = ObjectField('Device')
    destination = ObjectField('Device')