Provider version: ~> 3.2.0 (CheckPointSW/checkpoint)
Terraform version: >= 1.6.0
Resource affected: checkpoint_gaia_static_route
Description
mask_length is a required field, documented (and confirmed against the live Gaia API) to accept valid values 0-32. However, setting mask_length = 0 causes the API call to fail with:
Error: Failed to execute API call
Status: 400 BAD REQUEST
Code: err_validation_failed
Message: Validation Error
Errors: mask-length is required
despite mask_length being present and explicitly set in the Terraform config.
Steps to reproduce
resource "checkpoint_gaia_static_route" "default" {
address = "0.0.0.0"
mask_length = 0
type = "gateway"
next_hop {
gateway = "192.168.1.1"
priority = "default"
}
}
terraform apply then fails with "mask-length is required."
Verified via a raw API call (bypassing Terraform entirely) that the Gaia API itself accepts "mask-length": 0 without issue.
Provider version: ~> 3.2.0 (CheckPointSW/checkpoint)
Terraform version: >= 1.6.0
Resource affected: checkpoint_gaia_static_route
Description
mask_length is a required field, documented (and confirmed against the live Gaia API) to accept valid values 0-32. However, setting mask_length = 0 causes the API call to fail with:
despite mask_length being present and explicitly set in the Terraform config.
Steps to reproduce
terraform apply then fails with "mask-length is required."
Verified via a raw API call (bypassing Terraform entirely) that the Gaia API itself accepts "mask-length": 0 without issue.