[BREAKING CHANGE] split configuration/policy group resources into group + devices resources - #741
Open
tzarski0 wants to merge 14 commits into
Open
[BREAKING CHANGE] split configuration/policy group resources into group + devices resources#741tzarski0 wants to merge 14 commits into
tzarski0 wants to merge 14 commits into
Conversation
…InterfaceEthernet
…roup and attach resources
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Split configuration/policy group resources into group + devices resources
Summary
sdwan_configuration_groupandsdwan_policy_grouppreviously managed the group and all deviceassociations, variables, and deployment in one resource — forcing every device onto the same group into
a single state file. This splits each into two resources:
sdwan_configuration_group/sdwan_policy_group— group-only (name, description, solution, featureprofiles, topology [config only],
feature_versions/policy_versions). Gained a computedversionattribute that increments on any change, used as a redeploy trigger by the new devices resource. Delete
now fails if devices are still associated (forces
*_devicesto be destroyed first).sdwan_configuration_group_devices/sdwan_policy_group_devices(new) — device association, variables,and deploy. References the group via
configuration_group_id/policy_group_idand an optionalconfiguration_group_version/policy_group_versionto trigger redeployment when the group changes.This lets one group's devices be split across many state files (e.g. one state per device, ~2000 devices)
without one state affecting devices managed by another — the core mechanism is a state-scoped
Readthatonly ever reports/touches devices already tracked in that resource's state.
BREAKING CHANGE: the
devicesblock and inline variable/deploy handling are removed fromsdwan_configuration_group/sdwan_policy_group. Existing configs must migrate those blocks to the new*_devicesresources (composite import supported:group_id,[dev1,dev2,...]).