Skip to content

Commit

Permalink
Add the bonding mode to the options
Browse files Browse the repository at this point in the history
  • Loading branch information
teclator committed Nov 30, 2023
1 parent 6e04713 commit 33a5f06
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion rust/agama-dbus-server/src/network/nm/dbus.rs
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,10 @@ fn wireless_config_to_dbus(conn: &WirelessConnection) -> NestedHash {
fn bond_config_to_dbus(conn: &BondConnection) -> HashMap<&str, zvariant::Value> {
let config = &conn.bond;

HashMap::from([("options", Value::new(config.options.0.clone()))])
let mut options = config.options.0.clone();
options.insert("mode".to_string(), config.mode.to_string());

HashMap::from([("options", Value::new(options))])
}

/// Converts a MatchConfig struct into a HashMap that can be sent over D-Bus.
Expand Down

0 comments on commit 33a5f06

Please sign in to comment.