[PR #2190] [CLOSED] Add napalm_optional_args field to platform model #12328

Closed
opened 2025-12-29 22:20:54 +01:00 by adam · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/netbox-community/netbox/pull/2190
Author: @orgito
Created: 6/22/2018
Status: Closed

Base: developHead: issues/2029


📝 Commits (1)

  • d7491e5 Add napalm_optional_args field to platform model

📊 Changes

4 files changed (+46 additions, -3 deletions)

View changed files

📝 netbox/dcim/api/views.py (+18 -1)
📝 netbox/dcim/forms.py (+1 -1)
netbox/dcim/migrations/0056_platform_napalm_optional_args.py (+20 -0)
📝 netbox/dcim/models.py (+7 -1)

📄 Description

Fixes: #2029

Adding napalm_optional_args as suggested by @jeremystretch to the platform model allowing the user to pass extra arguments directly to the napalm driver.

Instead of a JSON string, the field will accept a comma-separated list of key=value pairs that will be parsed in a dictionary and passed to the napalm driver.

That format is simpler for users to understand and is compatible with the format of the napalm cli tool --optional_args argument.

image


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/netbox-community/netbox/pull/2190 **Author:** [@orgito](https://github.com/orgito) **Created:** 6/22/2018 **Status:** ❌ Closed **Base:** `develop` ← **Head:** `issues/2029` --- ### 📝 Commits (1) - [`d7491e5`](https://github.com/netbox-community/netbox/commit/d7491e58be1810338ae25a331cb761beda4398a0) Add napalm_optional_args field to platform model ### 📊 Changes **4 files changed** (+46 additions, -3 deletions) <details> <summary>View changed files</summary> 📝 `netbox/dcim/api/views.py` (+18 -1) 📝 `netbox/dcim/forms.py` (+1 -1) ➕ `netbox/dcim/migrations/0056_platform_napalm_optional_args.py` (+20 -0) 📝 `netbox/dcim/models.py` (+7 -1) </details> ### 📄 Description ### Fixes: #2029 Adding `napalm_optional_args` as suggested by @jeremystretch to the platform model allowing the user to pass extra arguments directly to the napalm driver. Instead of a JSON string, the field will accept a comma-separated list of key=value pairs that will be parsed in a dictionary and passed to the napalm driver. That format is simpler for users to understand and is compatible with the format of the napalm cli tool `--optional_args` argument. ![image](https://user-images.githubusercontent.com/4852822/41798003-7ba95f38-7642-11e8-8858-6dda8117b9ed.png) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
adam added the pull-request label 2025-12-29 22:20:54 +01:00
adam closed this issue 2025-12-29 22:20:54 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#12328