feat: add DiffSuppressFunc
for network_adapters
on r/host_virtual_switch
#2388
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
vCenter can occasionally rearrange the adapters on a host switch bond bridge structure. So far we've identified that this may occur after exiting maintenance mode.
The actual order of these adapters is not important, the significant ordering of active and standby nics is tracked on a separate policy structure on the switch configuration.
The vSphere UI also ignores ordering changes for this property and applies descending alphanumerical sorting.
I'm adding a diff supress function on the property that ignores ordering changes
Acceptance tests
Output from acceptance testing:
N/A
I tested my changes by running existing tests and modifying the environment from outside terraform to trigger changes on the switch bond bridge
Release Note
Release note for CHANGELOG:
References
Closes #2018