mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-01-21 07:55:00 +00:00
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:
parent
0c47956c2a
commit
1ad1eb266a
@ -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)
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user