orphaned mac-address objects #20784
Unanswered
olafhering
asked this question in
Q&A
Replies: 1 comment
-
|
An interface object where the |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
This is my observation with v4.4.2:
There are a bunch of
dcim/mac-address,dcim/interfaceandvirtualization/interfaceobjects.I do not know how the
mac-addressobjects were created. A few of them have theirassigned_object_typeandassigned_object_idset tonull. That makes them look like orphans, which could be recycled. They can be searched byassigned_object_id__empty=true. Theiridcan be assigned todcim/interfaces#primary_mac_addresswithPATCH.To my surprise such attempt to
PATCHleads to a one-way relationship: the web interfaces shows amac-addressas primary, but the actualmac-addressobject remains unchanged, withassigned_object_idandassigned_object_typeset tonull. My expectation was that either themac-addressobject gets updated as well, or that an error is thrown, which demands to update themac-addressobject first and let it point to the interface object.According to the changelog, newer versions have additional query capabilities in that area. I expect that what looks like an orphan today, can be inspected further and the
primary_mac_addressrelationship can be found and fixed.Until the upgrade is deployed, I probably need to collect all interface and all mac-address objects to correct their actual relationship. That might be an expensive operation, unless there are already ways to query the
primary_mac_addressstate today.Beta Was this translation helpful? Give feedback.
All reactions