[PR #3924] [CLOSED] Fixes #3509: IPAddressVar for custom scripts #12697

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

📋 Pull Request Information

Original PR: https://github.com/netbox-community/netbox/pull/3924
Author: @hSaria
Created: 1/15/2020
Status: Closed

Base: developHead: 3509-ipaddr-script-var


📝 Commits (10+)

  • 9a927b9 Fixes #3509: IPAddressVar for custom scripts
  • 02cf022 Updated documentation
  • ef095ed IPAddressVar test
  • 0bce5e8 Merge branch 'develop' into 3509-ipaddr-script-var
  • eae8e3f Added #3509 changelog
  • 7a83c0f Merge branch 'develop' into 3509-ipaddr-script-var
  • 6c905d4 Only accept networks for IPNetworkVar
  • 8599101 Removed unused import
  • fc62247 Adjusted test data to be consistent with its neighbors
  • 91db2cf Added note regarding the IPNetworkVar change

📊 Changes

4 files changed (+57 additions, -4 deletions)

View changed files

📝 docs/additional-features/custom-scripts.md (+12 -2)
📝 docs/release-notes/version-2.7.md (+12 -0)
📝 netbox/extras/scripts.py (+15 -2)
📝 netbox/extras/tests/test_scripts.py (+18 -0)

📄 Description

Fixes: #3509

  • Added IPAddressFormField which IPAddressVar uses. Updated documentation and added test.
  • Renamed IPFormField to IPNetworkFormField (it'd otherwise be confusing with the one above).
  • Updated the documentation with the min_prefix_length and max_prefix_length arguments for IPNetworkVar.

🔄 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/3924 **Author:** [@hSaria](https://github.com/hSaria) **Created:** 1/15/2020 **Status:** ❌ Closed **Base:** `develop` ← **Head:** `3509-ipaddr-script-var` --- ### 📝 Commits (10+) - [`9a927b9`](https://github.com/netbox-community/netbox/commit/9a927b90843e8b42a75f5c7caf1ecd9d79b684f1) Fixes #3509: IPAddressVar for custom scripts - [`02cf022`](https://github.com/netbox-community/netbox/commit/02cf02243f68ddf04e2fa4eecfcec279a1c6b8f8) Updated documentation - [`ef095ed`](https://github.com/netbox-community/netbox/commit/ef095ed763f859c5ad26e1bcb745386e9f602fab) IPAddressVar test - [`0bce5e8`](https://github.com/netbox-community/netbox/commit/0bce5e8081db3e1c0d3c9060e85d75f210edddf2) Merge branch 'develop' into 3509-ipaddr-script-var - [`eae8e3f`](https://github.com/netbox-community/netbox/commit/eae8e3f219578978b351577eda85bede10d91324) Added #3509 changelog - [`7a83c0f`](https://github.com/netbox-community/netbox/commit/7a83c0f79db458bc1b48414a30322fe24714e576) Merge branch 'develop' into 3509-ipaddr-script-var - [`6c905d4`](https://github.com/netbox-community/netbox/commit/6c905d4f002dc1c401bff208a6761ee411d9d8a2) Only accept networks for IPNetworkVar - [`8599101`](https://github.com/netbox-community/netbox/commit/85991014fd75a2793846ac95468b53bdb59a71e5) Removed unused import - [`fc62247`](https://github.com/netbox-community/netbox/commit/fc622470d66dd8f25a6ffc976b359a21389b6c02) Adjusted test data to be consistent with its neighbors - [`91db2cf`](https://github.com/netbox-community/netbox/commit/91db2cf2f279c91cdc6bb6472ffccf49af541dc5) Added note regarding the IPNetworkVar change ### 📊 Changes **4 files changed** (+57 additions, -4 deletions) <details> <summary>View changed files</summary> 📝 `docs/additional-features/custom-scripts.md` (+12 -2) 📝 `docs/release-notes/version-2.7.md` (+12 -0) 📝 `netbox/extras/scripts.py` (+15 -2) 📝 `netbox/extras/tests/test_scripts.py` (+18 -0) </details> ### 📄 Description <!-- Thank you for your interest in contributing to NetBox! Please note that our contribution policy requires that a feature request or bug report be opened for approval prior to filing a pull request. This helps avoid wasting time and effort on something that we might not be able to accept. Please indicate the relevant feature request or bug report below. IF YOUR PULL REQUEST DOES NOT REFERENCE AN ACCEPTED BUG REPORT OR FEATURE REQUEST, IT WILL BE MARKED AS INVALID AND CLOSED. --> ### Fixes: #3509 * Added `IPAddressFormField` which `IPAddressVar` uses. Updated documentation and added test. * Renamed `IPFormField` to `IPNetworkFormField` (it'd otherwise be confusing with the one above). * Updated the documentation with the `min_prefix_length` and `max_prefix_length` arguments for `IPNetworkVar`. --- <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:23:07 +01:00
adam closed this issue 2025-12-29 22:23:07 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#12697