networktocode / ntc-netbox-plugin-onboarding

A plugin for NetBox to easily onboard new devices.
Other
246 stars 46 forks source link

onboarding fails 'ipv4' when onboarding #62

Closed lethalwp closed 4 years ago

lethalwp commented 4 years ago

In the case the interface has no ipv4 address, but has ipv6, the onboarding fails with "ipv4" error message.

Diff to fix this: diff --git a/netbox_onboarding/onboard.py b/netbox_onboarding/onboard.py index d646af1..3b1c3e2 100644 --- a/netbox_onboarding/onboard.py +++ b/netbox_onboarding/onboard.py @@ -354,7 +354,7 @@ class NetdevKeeper: def get_mgmt_info(): """Get the interface name and prefix length for the management interface.""" for if_name, if_data in ip_ifs.items():

dgarros commented 4 years ago

Currently the onboarding plugin has been tested only on IPV4 so I guess it's expected Please can you open a new feature request using the template to track it. I agree it would be great to support both