mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-06-03 10:50:20 +00:00
networks: Make types sorted during creation
- So that less frequently used 'PPPoE' connection is not shown as default.
This commit is contained in:
parent
958c249dfb
commit
a66275bdf7
@ -19,6 +19,7 @@
|
||||
Helper functions for working with network manager.
|
||||
"""
|
||||
|
||||
import collections
|
||||
from gi.repository import GLib as glib
|
||||
from gi.repository import NM as nm
|
||||
import logging
|
||||
@ -29,11 +30,11 @@ import uuid
|
||||
|
||||
logger = logging.getLogger(__name__)
|
||||
|
||||
CONNECTION_TYPE_NAMES = {
|
||||
'802-3-ethernet': 'Ethernet',
|
||||
'802-11-wireless': 'Wi-Fi',
|
||||
'pppoe': 'PPPoE',
|
||||
}
|
||||
CONNECTION_TYPE_NAMES = collections.OrderedDict([
|
||||
('802-3-ethernet', 'Ethernet'),
|
||||
('802-11-wireless', 'Wi-Fi'),
|
||||
('pppoe', 'PPPoE')
|
||||
])
|
||||
|
||||
|
||||
class ConnectionNotFound(Exception):
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user