netbox-community / netbox

The premier source of truth powering network automation. Open source under Apache 2. Try NetBox Cloud free: https://netboxlabs.com/free-netbox-cloud/
http://netboxlabs.com/oss/netbox/
Apache License 2.0
15.77k stars 2.54k forks source link

Add USB type to Front/Rear Ports choices #16926

Closed Brian-Chow closed 5 days ago

Brian-Chow commented 2 months ago

NetBox version

v4.0.7

Feature type

Data model extension

Proposed functionality

I propose to add USB choices for Front/Rear ports. Changes proposed include modifying dcim/choices.py to add USB front and rear ports. No other data or UI changes required beyond the addition of USB choices

Use case

Use Cases:

Specific Scenario: Firewalla sells a 1u rack adapter/shelf for their Firewalla GOLD line of firewall appliances. It has an optional USB Wifi adapter that they provide keystone slots to move from the rear of the firewalla appliance to the front of the 1u rack adapter.

General other benefits: Netbox already supports USB cable types for consoles, but does not have a way to model using a usb cable and a patch panel to relocate the port from the rear/inside the rack to the front/outside of the rack. These cables should be treated as any other patch cable. This modification could also support USB attached celluar backup modems, and USB attached SMS gateways.

Code changes already completed in fork, just waiting on approval to submit a PR.

Database changes

n/a -- only requires adding lines to dcim/choices.py

External dependencies

n/a

jeffgdotorg commented 1 month ago

Thanks for your interest in improving NetBox!

I've moved this issue to accepted status and assigning it to you for implementation, since you've expressed interest in working it through to a PR.