mirror of
https://github.com/netbox-community/netbox.git
synced 2025-08-26 09:16:10 -06:00
10520 re-add config parameters
This commit is contained in:
parent
5dcd16b1cf
commit
b2f7f05cbe
@ -149,6 +149,39 @@ PARAMS = (
|
|||||||
},
|
},
|
||||||
),
|
),
|
||||||
|
|
||||||
|
# NAPALM
|
||||||
|
ConfigParam(
|
||||||
|
name='NAPALM_USERNAME',
|
||||||
|
label=_('NAPALM username'),
|
||||||
|
default='',
|
||||||
|
description=_("Username to use when connecting to devices via NAPALM")
|
||||||
|
),
|
||||||
|
ConfigParam(
|
||||||
|
name='NAPALM_PASSWORD',
|
||||||
|
label=_('NAPALM password'),
|
||||||
|
default='',
|
||||||
|
description=_("Password to use when connecting to devices via NAPALM")
|
||||||
|
),
|
||||||
|
ConfigParam(
|
||||||
|
name='NAPALM_TIMEOUT',
|
||||||
|
label=_('NAPALM timeout'),
|
||||||
|
default=30,
|
||||||
|
description=_("NAPALM connection timeout (in seconds)"),
|
||||||
|
field=forms.IntegerField
|
||||||
|
),
|
||||||
|
ConfigParam(
|
||||||
|
name='NAPALM_ARGS',
|
||||||
|
label=_('NAPALM arguments'),
|
||||||
|
default={},
|
||||||
|
description=_("Additional arguments to pass when invoking a NAPALM driver (as JSON data)"),
|
||||||
|
field=forms.JSONField,
|
||||||
|
field_kwargs={
|
||||||
|
'widget': forms.Textarea(
|
||||||
|
attrs={'class': 'vLargeTextField'}
|
||||||
|
),
|
||||||
|
},
|
||||||
|
),
|
||||||
|
|
||||||
# User preferences
|
# User preferences
|
||||||
ConfigParam(
|
ConfigParam(
|
||||||
name='DEFAULT_USER_PREFERENCES',
|
name='DEFAULT_USER_PREFERENCES',
|
||||||
|
Loading…
Reference in New Issue
Block a user