Document (or revisit) the reason that site
is a mutable field
#100
Labels
bug
Something isn't working
documentation
Improvements or additions to documentation
enhancement
New feature or request
What would you like to be added?
Discuss and document why we make
site
a mutable field but nottenant
.Why is this needed?
During the implementation of #90, we discovered that
site
being a mutable field will have an impact on allocation and restoration flow.For example, if we have the following prefixes that will match the
ParentPrefixSelector
conditions:Consider the following operation sequence (allocation):
tenant1
, site valuesite1
, and theParentPrefixSelector
that will return the aforementioned set of prefixes ->10.0.1.0/24
is picked as the parent prefix after the reconcile loop completessite2
-> what should we do?Consider the following operation sequence (restoration):
tenant1
, site valuesite1
, enablepreserveInNetBox
, and theParentPrefixSelector
that will return the aforementioned set of prefixes ->10.0.1.0/24
is picked as the parent prefix after the reconcile loop completes, and the restoration hash is computed against the immutable fields onlysite2
site
isn't used to calculate the hash, we can recover a prefix that doesn't satisfy the current CR requirement. Should we just abandon the restoration flow and allocate a new prefix from scratch? Or do we need to do something about the existing prefix first before we move on with further processing flowThe text was updated successfully, but these errors were encountered: