nsot
nsot copied to clipboard
Interface still reflects cached assignments even after assigned Network object is deleted
When a Network address is assigned to an Interface and the underlying Network object is deleted from the database, the Interface._addresses_cache and Interface._networks_cache are no updated. This is an inconsistency that needs to be addressed.
Possible solutions:
- A
Networkobject cannot be deleted as long as it has an existingAssignmentrelationship to anInterface - Deleting a
Networkwith anAssignmentin place also triggers an update to theInterfaceto refresh its cached relationships.