From a4de726601d7f003833e4c040b9fcebe5adc26b4 Mon Sep 17 00:00:00 2001 From: Dietmar Maurer Date: Fri, 10 May 2024 10:23:27 +0200 Subject: [PATCH] system-config-api: network: add alias 'iface' for interface name. So that we can use the Interface struct with create and update api calls (which currently use 'iface' instead of 'name'). Signed-off-by: Dietmar Maurer --- proxmox-system-config-api/src/network/api_types.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/proxmox-system-config-api/src/network/api_types.rs b/proxmox-system-config-api/src/network/api_types.rs index 34d0840c..046df22c 100644 --- a/proxmox-system-config-api/src/network/api_types.rs +++ b/proxmox-system-config-api/src/network/api_types.rs @@ -272,6 +272,7 @@ pub struct Interface { /// Interface is active (UP) pub active: bool, /// Interface name + #[serde(alias = "iface")] pub name: String, /// Interface type #[serde(rename = "type")]