ntc-netbox-plugin-onboarding
ntc-netbox-plugin-onboarding copied to clipboard
Gather information about interfaces while onboarding
Environment
- Python version: any
- NetBox version: any
- ntc-netbox-plugin-onboarding version: any
While onboarding a device, the plugin also could gather information about the interfaces.
Proposed Functionality
At the moment the onboarding plugin only gathers basic information about a new device. But while onboarding it also could gather information about the interfaces. An option could limit ("regex") the names of the interfaces to recognize.
A proof-of-concept written in ansible for a Cisco device:
-
name: Test hosts: switch07
tasks:
- name: Setup netbox.netbox.netbox_device_interface: netbox_url: http://127.0.0.1:8000 netbox_token: 123456 data: device: switch07 description: "{{ item.value.description }}" name: "{{ item.key }}" type: 1000Base-T (1GE) enabled: "{{ item.value.operstatus == 'up' }}" loop: "{{ ansible_facts.net_interfaces | dict2items }}" when: item.value.type is match ("Gigabit Ethernet") delegate_to: localhost
Use Case
Makes the life of an admin easier because he would not have to add in interfaces manually after onboarding a device.
Second this! Its a lot of work to get an accurate picture of the interfaces. I think mapping VLANs and tagged / untagged status would be really good.