[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20170227105524.64731e21@xeon-e3>
Date: Mon, 27 Feb 2017 10:55:24 -0800
From: Stephen Hemminger <stephen@...workplumber.org>
To: Zaboj Campula <zaboj.campula@...t.cz>
Cc: netdev@...r.kernel.org
Subject: Re: [PATCH] iproute2: show network device dependency tree
On Sat, 25 Feb 2017 16:59:00 +0000
Zaboj Campula <zaboj.campula@...t.cz> wrote:
> Add the argument '-tree' to ip-link to show network devices dependency tree.
>
> Example:
>
> $ ip -tree link
> eth0
> bond0
> eth1
> bond0
> eth2
> bond1
> eth3
> bond1
Another alternative format would be to make -tree a output modifier and ident (like ps tree options).
$ ip -t link
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN mode DEFAULT group default qlen 1
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
8: bond0 <BROADCAST,MULTICAST> mtu 1500 qdisc pfifo_fast state DOWN mode DEFAULT group default qlen 1000
link/ether 52:54:00:66:24:cd brd ff:ff:ff:ff:ff:ff
2: eth1: <BROADCAST,MULTICAST> mtu 1500 qdisc pfifo_fast master bond0 state DOWN mode DEFAULT group default qlen 1000
link/ether 52:54:00:66:24:cd brd ff:ff:ff:ff:ff:ff
Powered by blists - more mailing lists