Skip to content

Commit 0c52bac

Browse files
committed
doc: sync example output from 'show interfaces'
The 'brief' keyword has been gone for a while now. Also, update the ouput to match the "new" cli-pretty formatting. Fixes #1174 Signed-off-by: Joachim Wiberg <[email protected]>
1 parent fcd2e15 commit 0c52bac

File tree

2 files changed

+14
-7
lines changed

2 files changed

+14
-7
lines changed

doc/cli/introduction.md

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -169,9 +169,14 @@ interfaces {
169169
}
170170
}
171171
admin@host-12-34-56:/config/interface/eth0/> leave
172-
admin@host-12-34-56:/> show interfaces brief
173-
lo UNKNOWN 00:00:00:00:00:00 <LOOPBACK,UP,LOWER_UP>
174-
eth0 UP 52:54:00:12:34:56 <BROADCAST,MULTICAST,UP,LOWER_UP>
172+
admin@host-12-34-56:/> show interfaces
173+
INTERFACE PROTOCOL STATE DATA
174+
lo loopback UNKNOWN 00:00:00:00:00:00
175+
ipv4 127.0.0.1/8 (static)
176+
ipv6 ::1/128 (static)
177+
eth0 ethernet UP 52:54:00:12:34:56
178+
ipv4 192.168.2.200/24 (static)
179+
ipv6 fe80::5054:ff:fe12:3456/64 (link-layer)
175180
admin@host-12-34-56:/> show ip brief
176181
lo UNKNOWN 127.0.0.1/8 ::1/128
177182
eth0 UP 192.168.2.200/24 fe80::5054:ff:fe12:3456/64

doc/dhcp.md

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -116,10 +116,12 @@ When configuring, e.g., `dns-server`, or `router` options with the value
116116
subnet. For example:
117117

118118
```
119-
admin@example:/> show interfaces brief
120-
Interface Status Address
121-
eth0 UP 192.168.1.1/24
122-
eth1 UP 192.168.2.1/24
119+
admin@example:/> show interfaces
120+
INTERFACE PROTOCOL STATE DATA
121+
eth0 ethernet UP 02:00:00:00:00:00
122+
ipv4 192.168.1.1/24 (static)
123+
eth1 ethernet UP 02:00:00:00:00:01
124+
ipv4 192.168.2.1/24 (static)
123125
124126
admin@example:/config/dhcp-server/subnet/192.168.1.0/24/> edit option dns-server
125127
admin@example:/config/dhcp-server/subnet/192.168.1.0/24/option/dns-server/> set address auto

0 commit comments

Comments
 (0)