[PR #8063] [MERGED] Get_Environment from napalm should not need any decoding #13313

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

📋 Pull Request Information

Original PR: https://github.com/netbox-community/netbox/pull/8063
Author: @rizlas
Created: 12/14/2021
Status: Merged
Merged: 12/21/2021
Merged by: @jeremystretch

Base: developHead: develop


📝 Commits (2)

  • 2ec64a2 Get_Environment from napalm should not need any decoding
  • 39a0b15 Update netbox/dcim/api/views.py

📊 Changes

1 file changed (+1 additions, -1 deletions)

View changed files

📝 netbox/dcim/api/views.py (+1 -1)

📄 Description

Fixes: #7246

As stated already in the issue, napalm method get_environment is currently failing. Dictionary coming from napalm driver are already sanitized and therefore param decode_keys should be set to false before calling decode_dict.

https://github.com/napalm-automation/napalm/blob/develop/napalm/base/base.py#L465
https://github.com/napalm-automation/napalm/blob/develop/napalm/ios/ios.py#L2197

This was tested with ios driver.


🔄 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/8063 **Author:** [@rizlas](https://github.com/rizlas) **Created:** 12/14/2021 **Status:** ✅ Merged **Merged:** 12/21/2021 **Merged by:** [@jeremystretch](https://github.com/jeremystretch) **Base:** `develop` ← **Head:** `develop` --- ### 📝 Commits (2) - [`2ec64a2`](https://github.com/netbox-community/netbox/commit/2ec64a2ea25848e1c4770a65c99920da599553d3) Get_Environment from napalm should not need any decoding - [`39a0b15`](https://github.com/netbox-community/netbox/commit/39a0b15df4b93d6c3b6b19cc02752bc19cc173fa) Update netbox/dcim/api/views.py ### 📊 Changes **1 file changed** (+1 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `netbox/dcim/api/views.py` (+1 -1) </details> ### 📄 Description ### Fixes: #7246 As stated already in the issue, napalm method `get_environment` is currently failing. Dictionary coming from napalm driver are already sanitized and therefore param decode_keys should be set to false before calling decode_dict. https://github.com/napalm-automation/napalm/blob/develop/napalm/base/base.py#L465 https://github.com/napalm-automation/napalm/blob/develop/napalm/ios/ios.py#L2197 This was tested with ios driver. --- <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:26:42 +01:00
adam closed this issue 2025-12-29 22:26:42 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#13313