[PR #833] [MERGED] Support for comma in interfaces and ip addresses bulk creation #12125

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

📋 Pull Request Information

Original PR: https://github.com/netbox-community/netbox/pull/833
Author: @dav3860
Created: 1/23/2017
Status: Merged
Merged: 1/25/2017
Merged by: @jeremystretch

Base: developHead: comma_in_bulk_creation


📝 Commits (10+)

  • c171547 Merge pull request #625 from digitalocean/develop
  • 57ddd50 Merge pull request #666 from digitalocean/develop
  • 814c111 Merge pull request #694 from digitalocean/develop
  • 66be85a Merge pull request #726 from digitalocean/develop
  • 1f09f3d Merge pull request #728 from digitalocean/develop
  • 8eb140f Merge pull request #736 from digitalocean/develop
  • 88dace7 Merge pull request #766 from digitalocean/develop
  • 23f6832 Merge pull request #774 from digitalocean/develop
  • b6bbcb0 Merge pull request #814 from digitalocean/develop
  • 06118d7 Added support for comma in interfaces and ip addresses bulk creation

📊 Changes

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

View changed files

📝 netbox/utilities/forms.py (+31 -13)

📄 Description

Closes #821. Allows to use commas in addition to dashes to create IP addresses or interfaces in bulk. Examples :

'ge-0/0/[0-3,5]' => ['ge-0/0/0', 'ge-0/0/1', 'ge-0/0/2', 'ge-0/0/3', 'ge-0/0/5']
'2001:db8:0:[0,fd-ff]::/64' => ['2001:db8:0:0::/64', '2001:db8:0:fd::/64', ... '2001:db8:0:ff::/64']

🔄 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/833 **Author:** [@dav3860](https://github.com/dav3860) **Created:** 1/23/2017 **Status:** ✅ Merged **Merged:** 1/25/2017 **Merged by:** [@jeremystretch](https://github.com/jeremystretch) **Base:** `develop` ← **Head:** `comma_in_bulk_creation` --- ### 📝 Commits (10+) - [`c171547`](https://github.com/netbox-community/netbox/commit/c1715470371402724bbd63be5d83cfa7b9060f20) Merge pull request #625 from digitalocean/develop - [`57ddd50`](https://github.com/netbox-community/netbox/commit/57ddd5086f2ceecf68f1eb16ba74f5ff38eb9c00) Merge pull request #666 from digitalocean/develop - [`814c111`](https://github.com/netbox-community/netbox/commit/814c11167edf86bbaf3e0f493023f54421400fed) Merge pull request #694 from digitalocean/develop - [`66be85a`](https://github.com/netbox-community/netbox/commit/66be85a41f7841cd3464286627e4527df5af0df3) Merge pull request #726 from digitalocean/develop - [`1f09f3d`](https://github.com/netbox-community/netbox/commit/1f09f3d096c7908bfedeb50f7899ee3695e59a6b) Merge pull request #728 from digitalocean/develop - [`8eb140f`](https://github.com/netbox-community/netbox/commit/8eb140fd65fb5f45ab103355d3bc209c503f9140) Merge pull request #736 from digitalocean/develop - [`88dace7`](https://github.com/netbox-community/netbox/commit/88dace75a1c7f578313613fe5707b1c1a8b01d91) Merge pull request #766 from digitalocean/develop - [`23f6832`](https://github.com/netbox-community/netbox/commit/23f6832d9cb242e1d0c160609b94f2735d66d202) Merge pull request #774 from digitalocean/develop - [`b6bbcb0`](https://github.com/netbox-community/netbox/commit/b6bbcb060953c71a17653a4af1ae08c7c7144735) Merge pull request #814 from digitalocean/develop - [`06118d7`](https://github.com/netbox-community/netbox/commit/06118d73608c084bf3fa87b30e9dee5670a2b3b4) Added support for comma in interfaces and ip addresses bulk creation ### 📊 Changes **1 file changed** (+31 additions, -13 deletions) <details> <summary>View changed files</summary> 📝 `netbox/utilities/forms.py` (+31 -13) </details> ### 📄 Description Closes #821. Allows to use commas in addition to dashes to create IP addresses or interfaces in bulk. Examples : ``` 'ge-0/0/[0-3,5]' => ['ge-0/0/0', 'ge-0/0/1', 'ge-0/0/2', 'ge-0/0/3', 'ge-0/0/5'] '2001:db8:0:[0,fd-ff]::/64' => ['2001:db8:0:0::/64', '2001:db8:0:fd::/64', ... '2001:db8:0:ff::/64'] ``` --- <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:19:45 +01:00
adam closed this issue 2025-12-29 22:19:45 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#12125