Add snat/netmap/nat provider resources #2

Merged
benvin merged 1 commits from benvin/nat-resources into main 2026-07-24 22:51:17 +10:00
Owner

Why

The NAT tier (snat/masquerade, netmap, 1:1 nat) is stored, terraformable in the API, and now rendered to devices — but the provider had no resources for it. This adds them so the NAT tier is fully manageable as HCL.

Changes

  • Add tomswallapi_snat (masquerade/SNAT; source zone-or-CIDR, egress zone, optional address/probability), tomswallapi_netmap (net-to-net, anchored device:zone|interface), and tomswallapi_nat (1:1 static NAT bound to a device).
  • All three follow the id-keyed rule-resource pattern: POST create, GET/DELETE by id, update via delete+recreate (the API is create/delete only), import by id.
  • Register them, extend the README resource table, and add examples to examples/main.tf.
## Why The NAT tier (snat/masquerade, netmap, 1:1 nat) is stored, terraformable in the API, and now rendered to devices — but the provider had no resources for it. This adds them so the NAT tier is fully manageable as HCL. ## Changes - Add `tomswallapi_snat` (masquerade/SNAT; source zone-or-CIDR, egress zone, optional address/probability), `tomswallapi_netmap` (net-to-net, anchored device:zone|interface), and `tomswallapi_nat` (1:1 static NAT bound to a device). - All three follow the id-keyed rule-resource pattern: POST create, GET/DELETE by id, update via delete+recreate (the API is create/delete only), import by id. - Register them, extend the README resource table, and add examples to examples/main.tf.
unkinben added 1 commit 2026-07-24 22:37:55 +10:00
Add snat/netmap/nat provider resources
ci/woodpecker/pr/build Pipeline was successful
ci/woodpecker/pr/pre-commit Pipeline was successful
ci/woodpecker/pr/test Pipeline was successful
08fc9b209b
Add tomswallapi_snat, tomswallapi_netmap, and tomswallapi_nat resources for the
NAT tier, following the id-keyed rule-resource pattern (POST create, GET/DELETE
by id, update via delete+recreate since the API is create/delete only, import by
id). Register them, document them in the README, and add examples.
benvin merged commit 241e5167c5 into main 2026-07-24 22:51:17 +10:00
benvin deleted branch benvin/nat-resources 2026-07-24 22:51:17 +10:00
Sign in to join this conversation.