[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <ec9976a8-7084-687d-a7eb-7df07bd85196@gmail.com>
Date: Thu, 2 Jan 2020 10:56:57 -0700
From: David Ahern <dsahern@...il.com>
To: Andy Roulin <aroulin@...ulusnetworks.com>, netdev@...r.kernel.org
Cc: nikolay@...ulusnetworks.com, roopa@...ulusnetworks.com,
j.vosburgh@...il.com, vfalico@...il.com, andy@...yhouse.net
Subject: Re: [PATCH iproute2-next v3 2/2] iplink: bond: print lacp
actor/partner oper states as strings
On 12/31/19 5:15 AM, Andy Roulin wrote:
> The 802.3ad/LACP actor/partner operating states are only printed as
> numbers, e.g,
>
> ad_actor_oper_port_state 15
>
> Add an additional output in ip link show that prints a string describing
> the individual 3ad bit meanings in the following way:
>
> ad_actor_oper_port_state_str <active,short_timeout,aggregating,in_sync>
>
> JSON output is also supported, the field becomes a json array:
>
> "ad_actor_oper_port_state_str":
> ["active","short_timeout","aggregating","in_sync"]
>
> Signed-off-by: Andy Roulin <aroulin@...ulusnetworks.com>
> ---
> ip/iplink_bond_slave.c | 36 ++++++++++++++++++++++++++++++++----
> 1 file changed, 32 insertions(+), 4 deletions(-)
>
Fixed up a space before tabs in the macro and applied to iproute2-next.
Please run checkpatch on patches.
Powered by blists - more mailing lists