mirror of
https://git.proxmox.com/git/proxmox
synced 2025-06-03 00:04:40 +00:00
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:
parent
e210c85d8e
commit
a4de726601
@ -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")]
|
||||
|
Loading…
Reference in New Issue
Block a user