Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Set segments.segmentation_id as computed on networks #1600

Merged
merged 1 commit into from Sep 11, 2023

Conversation

nikParasyr
Copy link
Member

Segmentation_id on openstack_networking_network_v2:

  1. is statically defined by the user: in this case any changes on it should trigger a recreation of the network.
  2. is not defined by the user but neutron has an available pool: in this case, neutron picks a segmentation_id from the pool and allocates it for this network. Thus the value is computed by neutron.

Because use-case 1 AND 2 are valid (depending on the cloud configuration) we cannot use something like DiffSuppressFunc. Setting it as computed should work in both cases.

Unfortunately i dont think we can easily test this in the ci.

Close #1560

@nikParasyr nikParasyr merged commit 179985b into terraform-provider-openstack:main Sep 11, 2023
7 checks passed
@nikParasyr nikParasyr deleted the issue/1560 branch September 11, 2023 08:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

openstack_networking_network_v2 overriding dynamically assigned VLAN
2 participants