From 1ad1eb266a3c9508e125cc3ea4c7b26e16914674 Mon Sep 17 00:00:00 2001 From: Benedek Nagy Date: Fri, 29 Mar 2024 11:27:30 -0700 Subject: [PATCH] network: Skip of bridge interfaces in connections list Don't list the bridge interface in the Networks page as it is not meant to be modified by users and would only create confusion. Signed-off-by: Benedek Nagy --- plinth/network.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/plinth/network.py b/plinth/network.py index d2efa1a9b..d545449af 100644 --- a/plinth/network.py +++ b/plinth/network.py @@ -228,6 +228,11 @@ def get_connection_list(): for connection in client.get_connections(): # Display a friendly type name if known. connection_type = connection.get_connection_type() + # Do not show bridge adapter as it is not meant to + # be modified by the user. + if connection_type == 'bridge': + continue + connection_type_name = CONNECTION_TYPE_NAMES.get( connection_type, connection_type)