Prevent multiple primary interfaces (#4046)

This commit is contained in:
Stefan Agner 2022-12-09 12:56:52 +01:00 committed by GitHub
parent c41f13bf18
commit b044095e57
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -215,6 +215,8 @@ class NetworkManager(DBusInterfaceProxy):
== self.properties[DBUS_ATTR_PRIMARY_CONNECTION]
):
interface.primary = True
else:
interface.primary = False
interfaces[interface.name] = interface