-
Notifications
You must be signed in to change notification settings - Fork 124
TPT-4295: terraform: Update linode_networking_ip resource β reserved conversion & IP representation #2327
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
Merged
mgwoj
merged 29 commits into
linode:proj/reserved-ips
from
mgwoj:feature/TPT-4295-terraform-update-linode_networking_ip-resource-reserved-conversion-ip
May 21, 2026
Merged
Changes from all commits
Commits
Show all changes
29 commits
Select commit
Hold shift + click to select a range
3b7b3fd
TPT-4295: Update linode_networking_ip resource β reserved conversion β¦
mgwoj 70bea91
TPT-4295: Update linode_networking_ip resource β reserved conversion β¦
mgwoj 5a9dd47
TPT-4295: Update linode_networking_ip resource β reserved conversion β¦
mgwoj ecf2ffc
TPT-4295: Update linode_networking_ip resource β reserved conversion β¦
mgwoj 0823e02
TPT-4295: Update linode_networking_ip resource β reserved conversion β¦
mgwoj ee1c46b
TPT-4295: Update linode_networking_ip resource β reserved conversion β¦
mgwoj 32de388
TPT-4295: Update linode_networking_ip resource β reserved conversion β¦
mgwoj 459fcaa
TPT-4295: Update linode_networking_ip resource β reserved conversion β¦
mgwoj 5f1f0a1
TPT-4295: Update linode_networking_ip resource β reserved conversion β¦
mgwoj 3f3c3c6
TPT-4295: Update linode_networking_ip resource β reserved conversion β¦
mgwoj 424c68d
Update linode/networkingip/framework_resource.go
mgwoj c812f2b
Merge branch 'proj/reserved-ips' into feature/TPT-4295-terraform-updaβ¦
mgwoj d9a0592
Merge branch 'proj/reserved-ips' into feature/TPT-4295-terraform-updaβ¦
mgwoj 98c859f
TPT-4295: terraform: Update linode_networking_ip resource β reserved β¦
mgwoj ec190c0
Merge branch 'proj/reserved-ips' into feature/TPT-4295-terraform-updaβ¦
mgwoj a65d8a2
TPT-4295: terraform: Update linode_networking_ip resource β reserved β¦
mgwoj ce0caed
TPT-4295: terraform: Update linode_networking_ip resource β reserved β¦
mgwoj 13ae1bc
TPT-4295: terraform: Update linode_networking_ip resource β reserved β¦
mgwoj ed4ca04
TPT-4295: terraform: Update linode_networking_ip resource β reserved β¦
mgwoj 6a55bc3
TPT-4295: terraform: Update linode_networking_ip resource β reserved β¦
mgwoj 0d7ca91
TPT-4295: terraform: Update linode_networking_ip resource β reserved β¦
mgwoj d198e50
``
mgwoj 9f8461c
TPT-4295: terraform: Update linode_networking_ip resource β reserved β¦
mgwoj 1d5f9bf
Merge branch 'proj/reserved-ips' into feature/TPT-4295-terraform-updaβ¦
mgwoj b881e43
TPT-4295: terraform: Update linode_networking_ip resource β reserved β¦
mgwoj 9af642f
TPT-4295: terraform: Update linode_networking_ip resource β reserved β¦
mgwoj 1a666db
TPT-4295: terraform: Update linode_networking_ip resource β reserved β¦
mgwoj ddc61df
TPT-4295: terraform: Update linode_networking_ip resource β reserved β¦
mgwoj 3761662
TPT-4295: terraform: Update linode_networking_ip resource β reserved β¦
mgwoj File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -51,6 +51,14 @@ The Linode Network IP Address resource exports the following attributes: | |
|
|
||
| * `reserved` - Whether this IP address is a reserved IP. | ||
|
|
||
| * `tags` - A set of tags associated with this IP address. | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||
|
|
||
| * `assigned_entity` - The entity this IP address has been assigned to. This is `null` if the address is not assigned to an entity. | ||
| * `id` - The ID of the entity. | ||
| * `label` - The label of the entity. | ||
| * `type` - The type of the entity. | ||
| * `url` - The URL of the entity. | ||
|
|
||
| * `vpc_nat_1_1` - Contains information about the NAT 1:1 mapping of a public IP address to a VPC subnet. | ||
|
|
||
| * `address` - The IPv4 address that is configured as a 1:1 NAT for this VPC interface. | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -71,6 +71,18 @@ Each IP address will be stored in the `ip_addresses` attribute and will export t | |
|
|
||
| * `reserved` - Whether this IP address is a reserved IP. | ||
|
|
||
| * `tags` - A set of tags associated with this IP address. | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||
|
|
||
| * `assigned_entity` - The entity this IP address has been assigned to. This is null if the address is not assigned to an entity. | ||
|
|
||
| * `id` - The ID of the entity. | ||
|
|
||
| * `label` - The label of the entity. | ||
|
|
||
| * `type` - The type of the entity. | ||
|
|
||
| * `url` - The URL of the entity. | ||
|
|
||
| * `vpc_nat_1_1` - Contains information about the NAT 1:1 mapping of a public IP address to a VPC subnet. | ||
|
|
||
| * `address` - The IPv4 address that is configured as a 1:1 NAT for this VPC interface. | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,73 @@ | ||
| --- | ||
| page_title: "Linode: linode_reserved_ip_assignment" | ||
| description: |- | ||
| Manages assignment of a reserved IP address to a Linode instance. | ||
| --- | ||
|
|
||
| # linode\_reserved\_ip\_assignment | ||
|
|
||
| Manages the assignment of a reserved IPv4 address to a Linode instance. | ||
|
|
||
| For more information, see the corresponding [API documentation](https://techdocs.akamai.com/linode-api/reference/post-add-linode-ip). | ||
|
|
||
| ## Example Usage | ||
|
|
||
| ```hcl | ||
| resource "linode_reserved_ip_assignment" "example" { | ||
| linode_id = linode_instance.example.id | ||
| address = linode_networking_ip.reserved.address | ||
| public = true | ||
| } | ||
| ``` | ||
|
|
||
| ## Argument Reference | ||
|
|
||
| The following arguments are supported: | ||
|
|
||
| * `linode_id` - (Required) The ID of the Linode to assign the reserved IP to. Changing this forces creation of a new resource. | ||
|
|
||
| * `address` - (Required) The reserved IPv4 address to assign to the Linode. | ||
|
|
||
| * `public` - (Optional) Whether the IP address is public. Defaults to `true`. This must match the reserved IP's existing public/private status. Changing this forces creation of a new resource. | ||
|
|
||
| * `rdns` - (Optional) The reverse DNS assigned to this address. Configured via a separate API call after the IP is assigned. | ||
|
|
||
| * `apply_immediately` - (Optional) If true, the instance will be rebooted to update network interfaces. Defaults to `false`. | ||
|
|
||
| ## Attributes Reference | ||
|
|
||
| In addition to all arguments above, the following attributes are exported: | ||
|
|
||
| * `id` - The ID of the IPv4 address (the address itself). | ||
|
|
||
| * `gateway` - The default gateway for this address. | ||
|
|
||
| * `prefix` - The number of bits set in the subnet mask. | ||
|
|
||
| * `region` - The region this IP resides in. | ||
|
|
||
| * `subnet_mask` - The mask that separates host bits from network bits for this address. | ||
|
|
||
| * `type` - The type of IP address. | ||
|
|
||
| * `reserved` - The reservation status of the IP address. | ||
|
|
||
| * `tags` - A set of tags associated with this IP address. | ||
|
|
||
| * `assigned_entity` - The entity this IP address has been assigned to. This is null if the address is not assigned to an entity. | ||
|
|
||
| * `id` - The ID of the entity. | ||
|
|
||
| * `label` - The label of the entity. | ||
|
|
||
| * `type` - The type of the entity. | ||
|
|
||
| * `url` - The URL of the entity. | ||
|
|
||
| * `vpc_nat_1_1` - Contains information about the NAT 1:1 mapping of a public IP address to a VPC subnet. | ||
|
|
||
| * `address` - The IPv4 address that is configured as a 1:1 NAT for this VPC interface. | ||
|
|
||
| * `subnet_id` - The `id` of the VPC Subnet for this Interface. | ||
|
|
||
| * `vpc_id` - The `id` of the VPC configured for this Interface. | ||
|
Comment on lines
+1
to
+73
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As far as I know, the tags are not supported currently for
/ipsendpoints (here). Moreover, the API returns alsoassigned_entity(not mentioned in the API spec for/ipsendpoints at all...) so should we cover it as well?