예제 #1
0
파일: forms.py 프로젝트: KuanYuChen/eNMS
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()
예제 #2
0
파일: forms.py 프로젝트: 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()
예제 #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')
예제 #4
0
파일: forms.py 프로젝트: unoatinfou/eNMS
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')
예제 #5
0
파일: forms.py 프로젝트: 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()
예제 #6
0
파일: forms.py 프로젝트: KuanYuChen/eNMS
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)
예제 #7
0
파일: forms.py 프로젝트: 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)
예제 #8
0
파일: forms.py 프로젝트: 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)