[GH-ISSUE #135] Container interfaces commented out #29

Closed
opened 2026-03-03 15:29:42 +03:00 by kerem · 0 comments
Owner

Originally created by @bl4ko on GitHub (Mar 23, 2024).
Original GitHub issue: https://github.com/luthermonson/go-proxmox/issues/135

Hello, thanks for making great proxmox-sdk. I see that, containter interfaces function is commented out.

For me running proxmox version 8.1.4, the api path /nodes/%s/lxc/%d/interfaces, works correctly:

curl --location 'https://192.168.1.254:8006/api2/json/nodes/pve1/lxc/700/interfaces' \
--header "Authorization: $API_TOKEN" --insecure
{"data":[{"inet":"127.0.0.1/8","hwaddr":"00:00:00:00:00:00","name":"lo","inet6":"::1/128"},{"inet6":"fe80::be24:11ff:fe89:6707/64","name":"eth0","hwaddr":"bc:24:11:89:67:07","inet":"192.168.3.95/22"}]}

Is there any way of uncommenting this function?

Originally created by @bl4ko on GitHub (Mar 23, 2024). Original GitHub issue: https://github.com/luthermonson/go-proxmox/issues/135 Hello, thanks for making great proxmox-sdk. I see that, [containter interfaces](https://github.com/luthermonson/go-proxmox/blob/0a31b09c4fdd6a42813053a7423a56a23c378b1d/containers.go#L118) function is commented out. For me running proxmox version `8.1.4`, the api path `/nodes/%s/lxc/%d/interfaces`, works correctly: ```bash curl --location 'https://192.168.1.254:8006/api2/json/nodes/pve1/lxc/700/interfaces' \ --header "Authorization: $API_TOKEN" --insecure {"data":[{"inet":"127.0.0.1/8","hwaddr":"00:00:00:00:00:00","name":"lo","inet6":"::1/128"},{"inet6":"fe80::be24:11ff:fe89:6707/64","name":"eth0","hwaddr":"bc:24:11:89:67:07","inet":"192.168.3.95/22"}]} ``` Is there any way of uncommenting this function?
kerem closed this issue 2026-03-03 15:29:43 +03:00
Sign in to join this conversation.
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/go-proxmox#29
No description provided.