Skip to content

Fix/gaia static route mask length - #275

Merged
chkp-tomerassa merged 2 commits into
CheckPointSW:masterfrom
chkp-alias:fix/FMW-12074-gaia-static-route-mask-length
Sep 1, 2026
Merged

Fix/gaia static route mask length#275
chkp-tomerassa merged 2 commits into
CheckPointSW:masterfrom
chkp-alias:fix/FMW-12074-gaia-static-route-mask-length

Conversation

@chkp-alias

Copy link
Copy Markdown
Contributor

No description provided.

d.GetOk("mask_length") treats an explicit 0 the same as unset, since 0 is
the Go zero value for TypeInt. mask_length is Required and accepts 0-32,
so a route with mask_length=0 (e.g. a default route) silently omitted
mask-length from the request, and the Gaia API rejected it as missing.

Switch to GetOkExists, which distinguishes an explicit 0 from "not set",
matching the pattern already used for ping/scope_local in this file.
Not meant to be part of this fix's commit history.
@chkp-tomerassa
chkp-tomerassa merged commit 79641e1 into CheckPointSW:master Sep 1, 2026
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.

2 participants