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()
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()
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')
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')
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()
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)
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)
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)