mirror of
https://git.proxmox.com/git/proxmox
synced 2025-06-04 14:58:30 +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)
|
/// Interface is active (UP)
|
||||||
pub active: bool,
|
pub active: bool,
|
||||||
/// Interface name
|
/// Interface name
|
||||||
|
#[serde(alias = "iface")]
|
||||||
pub name: String,
|
pub name: String,
|
||||||
/// Interface type
|
/// Interface type
|
||||||
#[serde(rename = "type")]
|
#[serde(rename = "type")]
|
||||||
|
Loading…
Reference in New Issue
Block a user