src/config/network.rs: parse bond-slaves

This commit is contained in:
Dietmar Maurer
2020-04-23 09:31:10 +02:00
parent 1d9a68c2fc
commit 42fbe91a34
4 changed files with 27 additions and 0 deletions

View File

@ -590,6 +590,10 @@ pub const NETWORK_INTERFACE_LIST_SCHEMA: Schema = ArraySchema::new(
schema: NETWORK_INTERFACE_LIST_SCHEMA,
optional: true,
},
bond_slaves: {
schema: NETWORK_INTERFACE_LIST_SCHEMA,
optional: true,
},
}
)]
#[derive(Debug, Serialize, Deserialize)]
@ -631,6 +635,9 @@ pub struct Interface {
#[serde(skip_serializing_if="Option::is_none")]
pub bridge_ports: Option<Vec<String>>,
#[serde(skip_serializing_if="Option::is_none")]
pub bond_slaves: Option<Vec<String>>,
}
// Regression tests