networktocode/network-importer

Interfaces updated to type of 'other' replacing existing type in Netbox

shoddynetwork opened this issue · 0 comments

Environment

  • Python version: 3.8.10
  • Network Importer version: 3.0.3

When Network-Import applies changes to a device's interfaces, such as adding a description, the interface type is set to 'Other' replacing the existing value.

Steps to Reproduce

  1. Update description on the device
  2. run 'network-importer apply'
  3. Network-importer updates the description, but changes the interface type to Other.

Per Damien via Slack
"For the reference, we are setting the type of an interface in translate_attrs_for_netbox and we are using this method for both Create and Update
https://github.com/networktocode/network-importer/blob/develop/network_importer/adapters/netbox_api/models.py#L114"