[PR #3624] [CLOSED] [FEAT] Add names expansions in templates' interfaces #12600

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

📋 Pull Request Information

Original PR: https://github.com/netbox-community/netbox/pull/3624
Author: @fser
Created: 10/18/2019
Status: Closed

Base: developHead: name_expansion


📝 Commits (1)

  • 91ccd14 [FEAT] Add names expansions in templates' interfaces

📊 Changes

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

View changed files

📝 netbox/utilities/forms.py (+28 -17)

📄 Description

Fixes: #3623

This patch allows name expansion in templates interfaces names. For instance Interface/[FRONT|BACK]/Eth[1-10] produces the following interfaces:

Interface/FRONT/Eth1
Interface/FRONT/Eth2
Interface/FRONT/Eth3
Interface/FRONT/Eth4
Interface/FRONT/Eth5
Interface/FRONT/Eth6
Interface/FRONT/Eth7
Interface/FRONT/Eth8
Interface/FRONT/Eth9
Interface/FRONT/Eth10
Interface/BACK/Eth1
Interface/BACK/Eth2
Interface/BACK/Eth3
Interface/BACK/Eth4
Interface/BACK/Eth5
Interface/BACK/Eth6
Interface/BACK/Eth7
Interface/BACK/Eth8
Interface/BACK/Eth9
Interface/BACK/Eth10


🔄 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/3624 **Author:** [@fser](https://github.com/fser) **Created:** 10/18/2019 **Status:** ❌ Closed **Base:** `develop` ← **Head:** `name_expansion` --- ### 📝 Commits (1) - [`91ccd14`](https://github.com/netbox-community/netbox/commit/91ccd1410d19ac156860bef37c9a5c27dcb9a52b) [FEAT] Add names expansions in templates' interfaces ### 📊 Changes **1 file changed** (+28 additions, -17 deletions) <details> <summary>View changed files</summary> 📝 `netbox/utilities/forms.py` (+28 -17) </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: #3623 <!-- Please include a summary of the proposed changes below. --> This patch allows name expansion in templates interfaces names. For instance `Interface/[FRONT|BACK]/Eth[1-10]` produces the following interfaces: ``` Interface/FRONT/Eth1 Interface/FRONT/Eth2 Interface/FRONT/Eth3 Interface/FRONT/Eth4 Interface/FRONT/Eth5 Interface/FRONT/Eth6 Interface/FRONT/Eth7 Interface/FRONT/Eth8 Interface/FRONT/Eth9 Interface/FRONT/Eth10 Interface/BACK/Eth1 Interface/BACK/Eth2 Interface/BACK/Eth3 Interface/BACK/Eth4 Interface/BACK/Eth5 Interface/BACK/Eth6 Interface/BACK/Eth7 Interface/BACK/Eth8 Interface/BACK/Eth9 Interface/BACK/Eth10 ``` --- <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:22:34 +01:00
adam closed this issue 2025-12-29 22:22:34 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#12600