From 1d07dbc83c13438cce8a54035cc3560b0531733a Mon Sep 17 00:00:00 2001 From: Jorik Cronenberg Date: Fri, 8 Dec 2023 14:41:11 +0100 Subject: [PATCH] Apply ethernet config to dummy device --- rust/agama-dbus-server/src/network/model.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/rust/agama-dbus-server/src/network/model.rs b/rust/agama-dbus-server/src/network/model.rs index b413284999..9d48127a19 100644 --- a/rust/agama-dbus-server/src/network/model.rs +++ b/rust/agama-dbus-server/src/network/model.rs @@ -312,7 +312,9 @@ impl Connection { } pub fn is_ethernet(&self) -> bool { - matches!(self, Connection::Loopback(_)) || matches!(self, Connection::Ethernet(_)) + matches!(self, Connection::Loopback(_)) + || matches!(self, Connection::Ethernet(_)) + || matches!(self, Connection::Dummy(_)) } pub fn mac_address(&self) -> String {