Open linkdd opened 6 months ago
current status: ✅
Overall Coverage
Lines Covered Coverage Threshold Status 2177 2143 98% 90% ✅ New Files
No new covered files...
Modified Files
No covered modified files...
updated for commit:
c34d54d
by action🐍
Decision Record
When creating or updating a container via the API, here's what happens:
Because the creation/update is not in an atomic transaction, the Agent writes back to Netbox potentially invalid data.
To alleviate this, the Client needs to first PATCH with the data for Netbox, then PATCH
operation=recreate
(just as you would do in the Netbox UI).We can skip that part if we use Django transactions.
Changes
transaction.atomic()
for container creation/update in API