From 0c52bac4d79b89e60a6104d50c5e64403faae104 Mon Sep 17 00:00:00 2001 From: Joachim Wiberg Date: Thu, 2 Oct 2025 15:24:57 +0200 Subject: [PATCH] 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 --- doc/cli/introduction.md | 11 ++++++++--- doc/dhcp.md | 10 ++++++---- 2 files changed, 14 insertions(+), 7 deletions(-) diff --git a/doc/cli/introduction.md b/doc/cli/introduction.md index c880f45d..5ddd2347 100644 --- a/doc/cli/introduction.md +++ b/doc/cli/introduction.md @@ -169,9 +169,14 @@ interfaces { } } admin@host-12-34-56:/config/interface/eth0/> leave -admin@host-12-34-56:/> show interfaces brief -lo UNKNOWN 00:00:00:00:00:00 -eth0 UP 52:54:00:12:34:56 +admin@host-12-34-56:/> show interfaces +INTERFACE PROTOCOL STATE DATA +lo loopback UNKNOWN 00:00:00:00:00:00 + ipv4 127.0.0.1/8 (static) + ipv6 ::1/128 (static) +eth0 ethernet UP 52:54:00:12:34:56 + ipv4 192.168.2.200/24 (static) + ipv6 fe80::5054:ff:fe12:3456/64 (link-layer) admin@host-12-34-56:/> show ip brief lo UNKNOWN 127.0.0.1/8 ::1/128 eth0 UP 192.168.2.200/24 fe80::5054:ff:fe12:3456/64 diff --git a/doc/dhcp.md b/doc/dhcp.md index 323c83ee..8ebf9d4a 100644 --- a/doc/dhcp.md +++ b/doc/dhcp.md @@ -116,10 +116,12 @@ When configuring, e.g., `dns-server`, or `router` options with the value subnet. For example: ``` -admin@example:/> show interfaces brief -Interface Status Address -eth0 UP 192.168.1.1/24 -eth1 UP 192.168.2.1/24 +admin@example:/> show interfaces +INTERFACE PROTOCOL STATE DATA +eth0 ethernet UP 02:00:00:00:00:00 + ipv4 192.168.1.1/24 (static) +eth1 ethernet UP 02:00:00:00:00:01 + ipv4 192.168.2.1/24 (static) admin@example:/config/dhcp-server/subnet/192.168.1.0/24/> edit option dns-server admin@example:/config/dhcp-server/subnet/192.168.1.0/24/option/dns-server/> set address auto