From 01a845636ae7242ea78b52365468f496fc52372b Mon Sep 17 00:00:00 2001 From: Pavel Boldyrev <627562+bpg@users.noreply.github.com> Date: Sat, 8 Jul 2023 21:47:13 -0400 Subject: [PATCH] fix(node): ignore field `bridge_fd` when listing network interfaces of a node (#414) --- proxmox/nodes/network_types.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/proxmox/nodes/network_types.go b/proxmox/nodes/network_types.go index ee900dd8..59e393e1 100644 --- a/proxmox/nodes/network_types.go +++ b/proxmox/nodes/network_types.go @@ -17,11 +17,14 @@ type NetworkInterfaceListResponseBody struct { // NetworkInterfaceListResponseData contains the data from a node network interface list response. type NetworkInterfaceListResponseData struct { + // There seems to be inconsistency in the APIs between certain versions of Proxmox. + // See https://github.com/bpg/terraform-provider-proxmox/issues/410 + // BridgeFD *int `json:"bridge_fd,omitempty"` + Active *types.CustomBool `json:"active,omitempty"` Address *string `json:"address,omitempty"` Address6 *string `json:"address6,omitempty"` Autostart *types.CustomBool `json:"autostart,omitempty"` - BridgeFD *int `json:"bridge_fd,omitempty"` BridgePorts *string `json:"bridge_ports,omitempty"` BridgeSTP *string `json:"bridge_stp,omitempty"` BridgeVIDs *string `json:"bridge_vids,omitempty"`