Thread (4 messages) 4 messages, 2 authors, 2020-01-02

Re: [PATCH iproute2-next v3 2/2] iplink: bond: print lacp actor/partner oper states as strings

From: David Ahern <hidden>
Date: 2020-01-02 17:57:07

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 <redacted>
---
 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.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help