doc: network: update example

Only display Ethernet and WLAN devices (not loopback, bridges etc).
This commit is contained in:
Daniel Eklöf 2024-04-30 12:03:33 +02:00
parent 54902f46ab
commit 887e770202
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F

View file

@ -101,11 +101,17 @@ address per network interface.
# EXAMPLES # EXAMPLES
Display all Ethernet (including WLAN) devices. This excludes loopback,
bridges etc.
``` ```
bar: bar:
left: left:
- network: - network:
content: content:
map:
conditions:
type == ether || type == wlan:
map: map:
default: default:
string: {text: "{name}: {state} ({ipv4})"} string: {text: "{name}: {state} ({ipv4})"}