[PR #3988] [MERGED] Closes #3509: Add IP address vars for custom scripts #12718

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

📋 Pull Request Information

Original PR: https://github.com/netbox-community/netbox/pull/3988
Author: @jeremystretch
Created: 1/22/2020
Status: Merged
Merged: 1/22/2020
Merged by: @jeremystretch

Base: developHead: 3509-ipaddress-script-vars


📝 Commits (5)

📊 Changes

8 files changed (+162 additions, -43 deletions)

View changed files

📝 docs/additional-features/custom-scripts.md (+13 -2)
📝 docs/release-notes/version-2.7.md (+1 -0)
📝 netbox/extras/scripts.py (+32 -11)
📝 netbox/extras/tests/test_scripts.py (+55 -1)
📝 netbox/ipam/fields.py (+4 -9)
📝 netbox/ipam/formfields.py (+33 -2)
📝 netbox/ipam/validators.py (+23 -1)
📝 netbox/utilities/validators.py (+1 -17)

📄 Description

Fixes: #3509

  • Add IPAddressVar for maskless IP addresses
  • Add IPAddressWithMaskVar for IP addresses with masks
  • Preserve existing behavior of 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/3988 **Author:** [@jeremystretch](https://github.com/jeremystretch) **Created:** 1/22/2020 **Status:** ✅ Merged **Merged:** 1/22/2020 **Merged by:** [@jeremystretch](https://github.com/jeremystretch) **Base:** `develop` ← **Head:** `3509-ipaddress-script-vars` --- ### 📝 Commits (5) - [`ba6df87`](https://github.com/netbox-community/netbox/commit/ba6df87d10de7b92e8507566fce5d2eadcb224c2) Move min/max prefix length validators to ipam.validators - [`aa56c02`](https://github.com/netbox-community/netbox/commit/aa56c020ab4939be6e3c56bcd904036fca1f2e56) Move prefix_validator() to ipam.validators - [`f41564b`](https://github.com/netbox-community/netbox/commit/f41564b578dafb6d41f253acb847ae8b0c36e832) Introduce IPAddressVar and IPAddressWithMaskVar - [`b7e71f9`](https://github.com/netbox-community/netbox/commit/b7e71f9f39ba3860b722ee70ee6ca58647943c78) Add tests for IP address vars - [`72d1fe0`](https://github.com/netbox-community/netbox/commit/72d1fe0cd773d062f4f573e17a4163fef3006e3f) Changelog for #3509 ### 📊 Changes **8 files changed** (+162 additions, -43 deletions) <details> <summary>View changed files</summary> 📝 `docs/additional-features/custom-scripts.md` (+13 -2) 📝 `docs/release-notes/version-2.7.md` (+1 -0) 📝 `netbox/extras/scripts.py` (+32 -11) 📝 `netbox/extras/tests/test_scripts.py` (+55 -1) 📝 `netbox/ipam/fields.py` (+4 -9) 📝 `netbox/ipam/formfields.py` (+33 -2) 📝 `netbox/ipam/validators.py` (+23 -1) 📝 `netbox/utilities/validators.py` (+1 -17) </details> ### 📄 Description ### Fixes: #3509 - Add `IPAddressVar` for maskless IP addresses - Add `IPAddressWithMaskVar` for IP addresses with masks - Preserve existing behavior of `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:14 +01:00
adam closed this issue 2025-12-29 22:23:15 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#12718