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 <dietmar@proxmox.com>
This commit is contained in:
Dietmar Maurer 2024-05-10 10:23:27 +02:00
parent e210c85d8e
commit a4de726601

View File

@ -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")]