[PR #9463] [CLOSED] Closes #9368: Change interface naturalize function #13470

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

📋 Pull Request Information

Original PR: https://github.com/netbox-community/netbox/pull/9463
Author: @PieterL75
Created: 6/1/2022
Status: Closed

Base: developHead: issue_9368


📝 Commits (5)

  • e1fd723 Update naturalize_interface
  • 08d3857 Updated naturalize_interface for '0, 0:0' types
  • c433b1c Update tests and alernate ordering
  • b62bc3a update logic to accomodate more cases
  • 255190f update test_ordering expected values

📊 Changes

5 files changed (+95 additions, -70 deletions)

View changed files

📝 netbox/dcim/tests/test_natural_ordering.py (+3 -3)
📝 netbox/dcim/tests/test_views.py (+8 -2)
📝 netbox/utilities/fields.py (+1 -1)
📝 netbox/utilities/ordering.py (+61 -41)
📝 netbox/utilities/tests/test_ordering.py (+22 -23)

📄 Description

Fixes: #9368 Change interface naturalize function

This PR will change the naturalize_interface function to provide a more general but still adoptable way of sorting network interfaces.


🔄 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/9463 **Author:** [@PieterL75](https://github.com/PieterL75) **Created:** 6/1/2022 **Status:** ❌ Closed **Base:** `develop` ← **Head:** `issue_9368` --- ### 📝 Commits (5) - [`e1fd723`](https://github.com/netbox-community/netbox/commit/e1fd723d5433bb7245c3acebf9a1ee1947eb1bbe) Update naturalize_interface - [`08d3857`](https://github.com/netbox-community/netbox/commit/08d38574c0185a1f32cdcfeeddec7187b9851b00) Updated naturalize_interface for '0, 0:0' types - [`c433b1c`](https://github.com/netbox-community/netbox/commit/c433b1c95c71e27d05f2a8051a591211bee68f73) Update tests and alernate ordering - [`b62bc3a`](https://github.com/netbox-community/netbox/commit/b62bc3a1939919a3e0c3eab825803baf938e12e0) update logic to accomodate more cases - [`255190f`](https://github.com/netbox-community/netbox/commit/255190f52c526bb44c4d9457330bb4a185672f92) update test_ordering expected values ### 📊 Changes **5 files changed** (+95 additions, -70 deletions) <details> <summary>View changed files</summary> 📝 `netbox/dcim/tests/test_natural_ordering.py` (+3 -3) 📝 `netbox/dcim/tests/test_views.py` (+8 -2) 📝 `netbox/utilities/fields.py` (+1 -1) 📝 `netbox/utilities/ordering.py` (+61 -41) 📝 `netbox/utilities/tests/test_ordering.py` (+22 -23) </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: #9368 Change interface naturalize function <!-- Please include a summary of the proposed changes below. --> This PR will change the naturalize_interface function to provide a more general but still adoptable way of sorting network interfaces. --- <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 23:19:02 +01:00
adam closed this issue 2025-12-29 23:19:02 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#13470