fix(ipam): show VM id/name/IP in IP map tooltip
All checks were successful
Deploy to Production / Trigger production update (push) Successful in 8s
All checks were successful
Deploy to Production / Trigger production update (push) Successful in 8s
The IP map tooltip read e.ip, but the backend ip-map endpoint returns the address as ip_address, so the IP rendered as 'undefined'. Align the IPAMIPMapEntry type with the backend response and build the tooltip from proxmox_vmid, resource_name/hostname and ip_address. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
@@ -38,10 +38,14 @@ export function useIPAMNetworkStats(id: number) {
|
||||
}
|
||||
|
||||
export interface IPAMIPMapEntry {
|
||||
ip: string;
|
||||
ip_address: string;
|
||||
status: 'gateway' | 'allocated' | 'reserved' | 'available' | string;
|
||||
resource_name?: string | null;
|
||||
resource_type?: string | null;
|
||||
hostname?: string | null;
|
||||
proxmox_vmid?: number | null;
|
||||
is_gateway?: boolean;
|
||||
allocation_id?: number | null;
|
||||
last_seen?: string | null;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user