netbox-community / ansible_modules

NetBox modules for Ansible using Ansible Collections
GNU General Public License v3.0
309 stars 199 forks source link

[Feature]: nb_inventory return console_ports, console_server_ports, power_ports #932

Open yzguy opened 1 year ago

yzguy commented 1 year ago

NetBox version

v3.3.10

Feature type

Change to existing Module

Proposed functionality

nb_inventory would return console_ports and/or console_server_ports if enabled in the configuration

console_ports: true
console_server_ports: true
power_ports: true

Use case

Working on some automation to template out Opengear console servers and if we can get the console server ports for the devices then I can render out the individual serial port configuration and label the ports with the name of the device it's connected to.

External dependencies

None

Note, this is something I'm willing/planning to work on, just want to get an issue for it to document.

sc68cal commented 1 year ago

As long as the default is for this information to not be fetched, and requiring explicit enabling, I'm 👍 on this. The reason I'm requesting it to be disabled by default is a fear that we are adding more and more of these additional lookups that could have performance impacts, if they are enabled by default.

yzguy commented 1 year ago

@sc68cal I am going to go with the model that is in place, for example the interfaces: true if I want that included. I was thinking same behavior for these. No unnecessary lookups!

chuegel commented 4 months ago

I'm also interested in this.