summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorThomas Haller <thaller@redhat.com>2016-02-23 17:40:54 +0100
committerThomas Haller <thaller@redhat.com>2016-02-23 23:15:37 +0100
commit4e261f11bde57fcb201b655b3a560445988bd4e7 (patch)
treeb622e9dfe46413ee749853639832ab5d854cc652 /examples
parent4989905f8cd6d3ce7af5801cd40cb0c138287cc7 (diff)
device: add new NMDeviceType NM_DEVICE_TYPE_VETH
Based-on-patch-by: Jiří Klimeš <jklimes@redhat.com>
Diffstat (limited to 'examples')
-rwxr-xr-xexamples/python/dbus/list-devices.py1
-rwxr-xr-xexamples/ruby/list-devices.rb1
-rwxr-xr-xexamples/shell/list-devices.sh1
3 files changed, 3 insertions, 0 deletions
diff --git a/examples/python/dbus/list-devices.py b/examples/python/dbus/list-devices.py
index c9c753ec8..8dd41f616 100755
--- a/examples/python/dbus/list-devices.py
+++ b/examples/python/dbus/list-devices.py
@@ -40,6 +40,7 @@ devtypes = { 1: "Ethernet",
17: "IPTunnel"
18: "MACVLAN"
19: "VXLAN"
+ 20: "Veth"
}
states = { 0: "Unknown",
diff --git a/examples/ruby/list-devices.rb b/examples/ruby/list-devices.rb
index 9949a4097..bf3742583 100755
--- a/examples/ruby/list-devices.rb
+++ b/examples/ruby/list-devices.rb
@@ -43,6 +43,7 @@ devtypes = { 1 => "Ethernet",
17 => "IPTunnel",
18 => "MACVLAN",
19 => "VXLAN",
+ 20 => "Veth",
}
states = { 0 => "Unknown",
diff --git a/examples/shell/list-devices.sh b/examples/shell/list-devices.sh
index 817c8b7cc..c5c411401 100755
--- a/examples/shell/list-devices.sh
+++ b/examples/shell/list-devices.sh
@@ -52,6 +52,7 @@ devtype_to_name()
17) echo "IPTunnel" ;;
18) echo "MACVLAN" ;;
19) echo "VXLAN" ;;
+ 20) echo "Veth" ;;
*) echo "Unknown" ;;
esac
}