summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorThomas Haller <thaller@redhat.com>2016-02-23 15:24:32 +0100
committerThomas Haller <thaller@redhat.com>2016-02-23 15:24:39 +0100
commit71962881a84b3ea8f72d074f610e26fb35129524 (patch)
treeb4e73d151d1e33a2ca9f7ec13aba2aa480e4176f /examples
parent734f45e0e01b3c415bee2a4b62bb27c5092e170d (diff)
downloadNetworkManager-71962881a84b3ea8f72d074f610e26fb35129524.tar.gz
examples: add missing device-types to examples
Based-on-patch-by: Jiří Klimeš <jklimes@redhat.com>
Diffstat (limited to 'examples')
-rwxr-xr-xexamples/python/dbus/list-devices.py4
-rwxr-xr-xexamples/ruby/list-devices.rb6
-rwxr-xr-xexamples/shell/list-devices.sh4
3 files changed, 13 insertions, 1 deletions
diff --git a/examples/python/dbus/list-devices.py b/examples/python/dbus/list-devices.py
index b8e0058be5..c9c753ec8b 100755
--- a/examples/python/dbus/list-devices.py
+++ b/examples/python/dbus/list-devices.py
@@ -36,6 +36,10 @@ devtypes = { 1: "Ethernet",
13: "Bridge",
14: "Generic",
15: "Team"
+ 16: "TUN"
+ 17: "IPTunnel"
+ 18: "MACVLAN"
+ 19: "VXLAN"
}
states = { 0: "Unknown",
diff --git a/examples/ruby/list-devices.rb b/examples/ruby/list-devices.rb
index 710ccedc08..9949a40977 100755
--- a/examples/ruby/list-devices.rb
+++ b/examples/ruby/list-devices.rb
@@ -38,7 +38,11 @@ devtypes = { 1 => "Ethernet",
12 => "ADSL",
13 => "Bridge",
14 => "Generic",
- 15 => "Team"
+ 15 => "Team",
+ 16 => "TUN",
+ 17 => "IPTunnel",
+ 18 => "MACVLAN",
+ 19 => "VXLAN",
}
states = { 0 => "Unknown",
diff --git a/examples/shell/list-devices.sh b/examples/shell/list-devices.sh
index dba82261c0..817c8b7cc4 100755
--- a/examples/shell/list-devices.sh
+++ b/examples/shell/list-devices.sh
@@ -48,6 +48,10 @@ devtype_to_name()
13) echo "Bridge" ;;
14) echo "Generic" ;;
15) echo "Team" ;;
+ 16) echo "TUN" ;;
+ 17) echo "IPTunnel" ;;
+ 18) echo "MACVLAN" ;;
+ 19) echo "VXLAN" ;;
*) echo "Unknown" ;;
esac
}