dropbox / dropbox/nsot

Interface still reflects cached assignments even after assigned Network object is deleted

Open
#315 0 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
Python
Stars
407
Forks
61
PR merge metrics
No merged PRs in 30d

Description

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 `Network` object cannot be deleted as long as it has an existing `Assignment` relationship to an `Interface`
- Deleting a `Network` with an `Assignment` in place also triggers an update to the `Interface` to refresh its cached relationships.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.