network-importer icon indicating copy to clipboard operation
network-importer copied to clipboard

Add DiffSync Model Flag SKIP_CHILDREN_ON_DELETE on interface in Nautobot Adapters

Open dgarros opened this issue 4 years ago • 0 comments

Environment

  • Python version: 3.7
  • Network Importer version: 3.0.1
  • Component: Nautobot Adapter

Proposed Functionality

Add the DiffSync model flag SKIP_CHILDREN_ON_DELETE to all interface objects in the Nautobot and Netbox adapters. Currently when Network Importer needs to delete an interface with an ip address attached to it, it will trigger 2 actions: Delete the interface and delete the IP address but Nautobot will automatically delete both when it deletes the interface, so after finishing deleting the interface, the network importer will try to delete the IP address but it doesn’t exist anymore.

@anirudhkamath provided a fix in #232 to print a warning message but ideally we shouldn't try to delete the ip address in the first place

Use Case

User Experience

Configuration Changes

No

dgarros avatar Nov 04 '21 12:11 dgarros