fix IP addresses: parse from config/agent endpoints instead of guest agent

- LXCs: use /interfaces endpoint first, fallback to net0-net7 config parsing
- QEMU: use /agent/network-get-interfaces with correct result nesting
- IPv4 only filtering (ip-address-type check)
- Drop ip6= and nameserver from config fallback

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
2026-05-21 11:36:05 +01:00
parent 71d6b89062
commit 4deadcba3f
4 changed files with 115 additions and 20 deletions

View File

@@ -28,9 +28,10 @@
## Quick Wins (low effort, high value)
### Per-VM/LXC IP Addresses
- Fetches guest IPs from `/status/guest` for running VMs/LXCs (requires guest agent).
- LXCs: parses `ip=` and `ip6=` from `net0`, `net1`, etc. fields in `/nodes/<node>/lxc/<id>/config`.
- VMs: fetches from `/nodes/<node>/qemu/<id>/agent/network-get-interfaces` and reads `ipaddresses`.
- Displays IPs below the name in the table.
- **Status: done (merged to main)**
- **Status: done**
### Search / Filter
- Client-side text input filtering table rows by name/node/status
@@ -51,7 +52,7 @@
- Note: disk.total is not populated by Proxmox API — only disk.used is available
### Per-VM IP Addresses
- Fetch guest network IP addresses (extra API call needed)
- Done — uses `/nodes/<node>/qemu/<id>/agent/network-get-interfaces` for VMs and config `net0`/`net1` parsing for LXCs.
### Per-VM CPU/Memory Trend
- Periodic polling to build a small trend chart