]> git.proxmox.com Git - mirror_iproute2.git/commit
iplink: bond: print lacp actor/partner oper states as strings
authorAndy Roulin <aroulin@cumulusnetworks.com>
Tue, 31 Dec 2019 12:15:02 +0000 (04:15 -0800)
committerDavid Ahern <dsahern@gmail.com>
Thu, 2 Jan 2020 17:45:32 +0000 (17:45 +0000)
commit39ac2d2b802b42ae460e84cc3fb971ceafb2b4d2
tree9b9cd6518724fdc31854c9a4ba3c24053555111e
parenta6cf98c23fc692c3816bf4c0ecc221c125a6e169
iplink: bond: print lacp actor/partner oper states as strings

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@cumulusnetworks.com>
Signed-off-by: David Ahern <dsahern@gmail.com>
ip/iplink_bond_slave.c