examples: update examples for new device types

This commit is contained in:
Jiří Klimeš
2012-08-24 09:48:19 +02:00
parent b39804ae6b
commit 3fe99e7ebf
3 changed files with 20 additions and 8 deletions

View File

@@ -15,7 +15,7 @@
# with this program; if not, write to the Free Software Foundation, Inc.,
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
#
# Copyright (C) 2011 Red Hat, Inc.
# Copyright (C) 2011 - 2012 Red Hat, Inc.
#
import dbus, sys
@@ -23,11 +23,15 @@ import dbus, sys
# This example lists basic information about network interfaces known to NM
devtypes = { 1: "Ethernet",
2: "WiFi",
2: "Wi-Fi",
5: "Bluetooth",
6: "OLPC",
7: "WiMAX",
8: "Modem" }
8: "Modem",
9: "InfiniBand",
10: "Bond",
11: "VLAN",
12: "ADSL" }
states = { 0: "Unknown",
10: "Unmanaged",