Closed Vagrantin closed 3 years ago
This has nothing to do with the HCL language itself. The provider's validation allows for all possible mac address inputs but the XO api needs a mac address with colons.
The provider needs to convert all mac addresses to use colons before making the request to XO. I found this from looking at the XO server's logs while creating a VM.
Jan 28 01:12:17 xoa xo-server[510]: 2021-01-28T06:12:17.182Z - xo:api - [WARN] admin@admin.net | vm.create(...) [55s] =!> XapiError: MAC_INVALID(6E-84-EE-7B-33-25)
@Vagrantin #115 should fix this problem. Thanks for highlighting this issue!
Super thank you ! Once PR is done will test it and let you know.
This is available in v0.13.1
Hello, First of all thank you for this great plugin !
I’m currently testing it and I have notice that the Mac Address format is important, where you should use colon
:
instead of dash-
.I believe this is a Terraform limitation with identifiers Since Go doesn’t have any issue to parse any common type of Mac Address
Maybe good to mention it in the documentation.
This does work correctly.
but this doesn’t work
hope that help