How can I define more than one `allowed_address_pa...
# python
How can I define more than one
for an Openstack port? This only uses the latest `ip_address`:
Copy code
allowed_address_pairs=[{'ip_address': config.kube_service_addresses,
                       'ip_address': config.kube_pods_subnet}]
Looks like you currently cannot - this is tracked in the upstream provider at:
cc also @stocky-spoon-28903 though - as it sounds like there might be a workaround there?
I’m not 100% familiar with python syntax here (so this might not be the issue) but it looks to me like the second is overriding the first because it’s setting the same key on a map, whereas we want an array of maps for
- in the NodeJS SDK it gets projected as an array of objects (
The upstream issue with Terraform I don’t think is the same - that’s about not being able to use an interpolated list in place of a repeating block in HCL configuration.
Thanks for investigating this! I did find one Terraform pull request regarding this but it had just 2
defined one after another. I'll explore this more once I have time.