mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-05-08 08:58:03 +02:00
examples: add missing device-types to examples
Based-on-patch-by: Jiří Klimeš <jklimes@redhat.com>
This commit is contained in:
parent
734f45e0e0
commit
71962881a8
3 changed files with 13 additions and 1 deletions
|
|
@ -36,6 +36,10 @@ devtypes = { 1: "Ethernet",
|
|||
13: "Bridge",
|
||||
14: "Generic",
|
||||
15: "Team"
|
||||
16: "TUN"
|
||||
17: "IPTunnel"
|
||||
18: "MACVLAN"
|
||||
19: "VXLAN"
|
||||
}
|
||||
|
||||
states = { 0: "Unknown",
|
||||
|
|
|
|||
|
|
@ -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",
|
||||
|
|
|
|||
|
|
@ -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
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue