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

Plugin crashed if mist_org_deviceprofile_gateway contains tunnel_configs #68

Open
lzhang-AIDE opened this issue Dec 20, 2024 · 3 comments
Assignees
Labels
bug Something isn't working enhancement New feature or request

Comments

@lzhang-AIDE
Copy link

Describe the bug

Define tunnel configs in "mist_org_deviceprofile_gateway"; when apply get error "The terraform-provider-mist plugin crashed!"

To Reproduce

resource "mist_org_deviceprofile_gateway" "deviceprofile_test1" {
org_id = mist_org.terraform_test.id
tunnel_configs = {
"J1" = {
auto_provision = {
provider = "jse-ipsec"
primary = {
probe_ips = [
"8.8.8.8"
]
wan_names = [
"wan0"
]
}
secondary = {
probe_ips = [
"8.8.8.8"
]
wan_names = [
"wan0"
]
}
}
}
}
name = "SVL_HUB"
ntp_override = true
dns_override = true
}

Expected behavior

tunnel_configs should be applied correctly as what we see in UI:
Screenshot 2024-12-19 at 5 49 20 PM

Error Message

The terraform-provider-mist plugin crashed!

Software

OS: [MacOS]
Terraform Version [v1.9.1]
Provider Version [latest version]

@lzhang-AIDE lzhang-AIDE added the bug Something isn't working label Dec 20, 2024
@tmunzer
Copy link
Collaborator

tmunzer commented Dec 20, 2024

Hi @lzhang-AIDE ,

I just released v0.2.13. Can you test it?

Thanks

@lzhang-AIDE
Copy link
Author

With the latest code, there is no crash happened.
But the Probe IPs is not applied:
Screenshot 2024-12-20 at 11 28 51 AM
Screenshot 2024-12-20 at 11 29 37 AM

Could you check @tmunzer?
Thanks.

@tmunzer
Copy link
Collaborator

tmunzer commented Dec 20, 2024

Thanks.
There is no probe_ips in the API doc for the auto_provision object.
I'll check that and I'll add it

@tmunzer tmunzer added the enhancement New feature or request label Dec 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants