You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
==============================================================================
~~~ REQUEST ~~~
PUT /v4/linode/instances/55519453/configs/58641324/interfaces/1137089 HTTP/1.1
HOST : api.linode.com
HEADERS:
Accept: application/json
Content-Type: application/json
User-Agent: linodego/v1.29.0 https://github.com/linode/linodego
BODY :
{}
------------------------------------------------------------------------------
~~~ RESPONSE ~~~
STATUS : 200 OK
PROTO : HTTP/1.1
RECEIVED AT : 2024-03-02T05:23:05.495718273Z
TIME DURATION: 170.160593ms
BODY :
{
"id": 1137089,
"purpose": "vpc",
"primary": false,
"active": true,
"ipam_address": null,
"label": null,
"vpc_id": 26186,
"subnet_id": 26443,
"ipv4": {
"vpc": "10.0.0.5",
"nat_1_1": null
},
"ipv6": null,
"ip_ranges": [
"10.192.3.0/24"
]
}
Ideally, in the end when we call linodeClient.UpdateInstanceConfigInterface() with empty ip_ranges, it should have set ip_ranges to empty and response should not contain ip_ranges still set.
I can delete an item from ip_ranges if there are more than 1 entries, its just that I am unable to set it to empty.
Steps to Reproduce
Bring up a linode in VPC.
Try setting ip_ranges for the VPC interface.
Once set, try clearing the ip_ranges.
If one has a linode in VPC, they can use the above script to reproduce the issue. Just change the instance id with your instance id and set atleast one ip subnet in ip_ranges.
The text was updated successfully, but these errors were encountered:
rahulait
changed the title
[Bug]: unable to set ip_ranges to empty of VPC interface once set
[Bug]: unable to empty ip_ranges for VPC interface once set
Mar 2, 2024
go Version
go version go1.21.7 linux/amd64
API Wrapper Version
github.com/linode/linodego v1.29.0
Code Snippet
Expected Behavior
ip_ranges should be set to empty:
Actual Behavior
ip_ranges of interface connected to VPC never gets cleared.
Output sample:
Initial instance state:
Logs of request sent to set ip_ranges to empty:
Ideally, in the end when we call linodeClient.UpdateInstanceConfigInterface() with empty ip_ranges, it should have set ip_ranges to empty and response should not contain ip_ranges still set.
I can delete an item from ip_ranges if there are more than 1 entries, its just that I am unable to set it to empty.
Steps to Reproduce
If one has a linode in VPC, they can use the above script to reproduce the issue. Just change the instance id with your instance id and set atleast one ip subnet in ip_ranges.
The text was updated successfully, but these errors were encountered: