examples: add missing device-types to examples
authorThomas Haller <thaller@redhat.com>
Tue, 23 Feb 2016 14:24:32 +0000 (15:24 +0100)
committerThomas Haller <thaller@redhat.com>
Tue, 23 Feb 2016 14:24:39 +0000 (15:24 +0100)
Based-on-patch-by: Jiří Klimeš <jklimes@redhat.com>
examples/python/dbus/list-devices.py
examples/ruby/list-devices.rb
examples/shell/list-devices.sh

index b8e0058..c9c753e 100755 (executable)
@@ -36,6 +36,10 @@ devtypes = { 1: "Ethernet",
              13: "Bridge",
              14: "Generic",
              15: "Team"
+             16: "TUN"
+             17: "IPTunnel"
+             18: "MACVLAN"
+             19: "VXLAN"
            }
 
 states = { 0: "Unknown",
index 710cced..9949a40 100755 (executable)
@@ -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",
index dba8226..817c8b7 100755 (executable)
@@ -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
 }