Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 0 additions & 14 deletions docs/models/dcim/platform.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,17 +23,3 @@ If designated, this platform will be available for use only to devices assigned
### Configuration Template

The default [configuration template](../extras/configtemplate.md) for devices assigned to this platform.

### NAPALM Driver

!!! warning "Deprecated Field"
NAPALM integration was removed from NetBox core in v3.5 and is now available as a [plugin](https://github.com/netbox-community/netbox-napalm). This field will be removed in NetBox v3.6.

The [NAPALM driver](https://napalm.readthedocs.io/en/latest/support/index.html) associated with this platform.

### NAPALM Arguments

!!! warning "Deprecated Field"
NAPALM integration was removed from NetBox core in v3.5 and is now available as a [plugin](https://github.com/netbox-community/netbox-napalm). This field will be removed in NetBox v3.6.

Any additional arguments to send when invoking the NAPALM driver assigned to this platform.
4 changes: 0 additions & 4 deletions netbox/dcim/api/serializers.py
Original file line number Diff line number Diff line change
Expand Up @@ -787,10 +787,6 @@ class Meta:
]


class DeviceNAPALMSerializer(serializers.Serializer):
method = serializers.JSONField()


#
# Device components
#
Expand Down
33 changes: 0 additions & 33 deletions netbox/netbox/config/parameters.py
Original file line number Diff line number Diff line change
Expand Up @@ -158,39 +158,6 @@ def __init__(self, name, label, default, description='', field=None, field_kwarg
},
),

# 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
ConfigParam(
name='DEFAULT_USER_PREFERENCES',
Expand Down
11 changes: 0 additions & 11 deletions netbox/templates/dcim/platform.html
Original file line number Diff line number Diff line change
Expand Up @@ -44,17 +44,6 @@ <h5 class="card-header">
<th scope="row">{% trans "Config Template" %}</th>
<td>{{ object.config_template|linkify|placeholder }}</td>
</tr>
<tr>
<th scope="row">
{% trans "NAPALM Driver" %}
<i
class="mdi mdi-alert-box text-warning"
data-bs-toggle="tooltip"
data-bs-placement="right"
title="{% trans "This field has been deprecated, and will be removed in NetBox v3.6" %}."
></i>
</th>
</tr>
</table>
</div>
</div>
Expand Down