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 <contact@nbenedek.me>
This commit is contained in:
Benedek Nagy 2024-03-29 11:27:30 -07:00 committed by Sunil Mohan Adapa
parent 0c47956c2a
commit 1ad1eb266a
No known key found for this signature in database
GPG Key ID: 43EA1CFF0AA7C5F2

View File

@ -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)