ntc-netbox-plugin-onboarding icon indicating copy to clipboard operation
ntc-netbox-plugin-onboarding copied to clipboard

Gather information about interfaces while onboarding

Open misch42 opened this issue 5 years ago • 1 comments

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.

misch42 avatar Jul 08 '20 06:07 misch42

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.

aslater3 avatar Apr 01 '21 10:04 aslater3