Esempio n. 1
0
class LibreNmsForm(FlaskForm):
    librenms_address = StringField(
        default='http://librenms.example.com'
    )
    node_type = [subtype for subtype in device_subtypes.items()]
    librenms_type = SelectField(choices=node_type)
    librenms_token = PasswordField()
Esempio n. 2
0
File: forms.py Progetto: taycom/eNMS
class OpenNmsForm(FlaskForm):
    opennms_rest_api = TextField()
    opennms_devices = TextField()
    node_type = [subtype for subtype in device_subtypes.items()]
    subtype = SelectField(choices=node_type)
    opennms_login = TextField()
    password = PasswordField()
Esempio n. 3
0
class OpenNmsForm(FlaskForm):
    rest_query = TextField('ReST API',
                           default='https://demo.opennms.org/opennms/rest')
    node_query = TextField(
        'Devices', default='https://demo.opennms.org/opennms/rest/nodes')
    node_type = [subtype for subtype in device_subtypes.items()]
    type = SelectField('Type', choices=node_type)
    login = TextField('Login')
    password = PasswordField('Password')
Esempio n. 4
0
class AddDevice(AddObjectForm):
    device_types = [subtype for subtype in device_subtypes.items()]
    subtype = SelectField('Type', choices=device_types)
    ip_address = TextField('IP address', [optional()])
    operating_system = TextField('Operating System', [optional()])
    os_version = TextField('OS version', [optional()])
    longitude = FloatField('Longitude', default=0.)
    latitude = FloatField('Latitude', default=0.)
    username = TextField('username')
    password = PasswordField('Password')
    secret_password = PasswordField('Secret password')
Esempio n. 5
0
File: forms.py Progetto: JackWa/eNMS
class AddDevice(AddObjectForm):
    device_types = [subtype for subtype in device_subtypes.items()]
    subtype = SelectField(choices=device_types)
    ip_address = TextField('IP address')
    port = IntegerField(default=22)
    operating_system = TextField()
    os_version = TextField()
    longitude = FloatField(default=0.)
    latitude = FloatField(default=0.)
    username = TextField()
    password = PasswordField()
    secret_password = PasswordField()
Esempio n. 6
0
class AddDevice(AddObjectForm):
    device_types = [subtype for subtype in device_subtypes.items()]
    subtype = SelectField(choices=device_types)
    ip_address = StringField('IP address')
    port = IntegerField(default=22)
    operating_system = StringField()
    os_version = StringField()
    longitude = FloatField(default=0.)
    latitude = FloatField(default=0.)
    username = StringField()
    password = PasswordField()
    enable_password = PasswordField()
    napalm_driver = SelectField(choices=NAPALM_DRIVERS)
    netmiko_driver = SelectField(choices=NETMIKO_DRIVERS)
Esempio n. 7
0
File: forms.py Progetto: taycom/eNMS
class NetboxForm(FlaskForm):
    netbox_address = TextField(default='http://0.0.0.0:8000')
    netbox_token = TextField()
    node_type = [subtype for subtype in device_subtypes.items()]
    netbox_type = SelectField(choices=node_type)
Esempio n. 8
0
File: forms.py Progetto: fublu/eNMS
class NetboxForm(FlaskForm):
    netbox_address = StringField(default="http://0.0.0.0:8000")
    netbox_token = PasswordField()
    node_type = [subtype for subtype in device_subtypes.items()]
    netbox_type = SelectField(choices=node_type)