linux/Documentation/netlink/specs
Hangbin Liu 4ede457542 doc/netlink/specs: Add bond support to rt_link.yaml
Add bond support to rt_link.yaml. Here is an example output:

 $ ./tools/net/ynl/cli.py --spec Documentation/netlink/specs/rt_link.yaml \
   --do getlink --json '{"ifname": "bond0"}' --output-json | jq '.linkinfo'
 {
   "kind": "bond",
   "data": {
     "mode": 4,
     "miimon": 100,
     ...
     "arp-interval": 0,
     "arp-ip-target": [
       "192.168.1.1",
       "192.168.1.2"
     ],
     "arp-validate": 0,
     "arp-all-targets": 0,
     "ns-ip6-target": [
       "2001::1",
       "2001::2"
     ],
     "primary-reselect": 0,
     ...
     "missed-max": 2,
     "ad-info": {
       "aggregator": 1,
       "num-ports": 1,
       "actor-key": 0,
       "partner-key": 1,
       "partner-mac": "00:00:00:00:00:00"
     }
   }
 }

And here is the downlink info.

 $ ./tools/net/ynl/cli.py --spec Documentation/netlink/specs/rt_link.yaml \
   --do getlink --json '{"ifname": "dummy0"}' --output-json | jq '.linkinfo'
 {
   "kind": "dummy",
   "slave-kind": "bond",
   "slave-data": {
     "state": 0,
     "mii-status": 0,
     "link-failure-count": 0,
     "perm-hwaddr": "f2:82:f7:cc:47:13",
     "queue-id": 0,
     "prio": 0
   }
 }

Signed-off-by: Hangbin Liu <liuhangbin@gmail.com>
Link: https://lore.kernel.org/r/20240409083504.3900877-1-liuhangbin@gmail.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
2024-04-10 19:35:10 -07:00
..
devlink.yaml devlink: Fix length of eswitch inline-mode 2024-03-11 13:13:53 -07:00
dpll.yaml dpll: spec: use proper enum for pin capabilities attribute 2024-03-07 20:51:00 -08:00
ethtool.yaml netlink: specs: ethtool: define header-flags as an enum 2024-04-05 22:26:30 -07:00
fou.yaml netlink: specs: fix indent in fou 2023-08-24 19:04:20 -07:00
handshake.yaml handshake: Fix sign of key_serial_t fields 2023-10-02 12:34:21 -07:00
mptcp_pm.yaml mptcp: add token for get-addr in yaml 2024-03-04 13:07:45 +00:00
netdev.yaml netdev: add queue stat for alloc failures 2024-03-07 21:13:26 -08:00
nfsd.yaml NFSD: introduce netlink stubs 2023-10-16 12:44:09 -04:00
nlctrl.yaml ynl: rename array-nest to indexed-array 2024-04-05 22:32:49 -07:00
ovs_datapath.yaml netlink: specs: ovs: correct enum names in specs 2023-12-15 12:17:16 +00:00
ovs_flow.yaml netlink: specs: ovs: correct enum names in specs 2023-12-15 12:17:16 +00:00
ovs_vport.yaml netlink: specs: ovs: remove fixed header fields from attrs 2023-12-15 12:17:16 +00:00
rt_addr.yaml doc/netlink: Add spec for rt addr messages 2023-08-27 17:17:10 -07:00
rt_link.yaml doc/netlink/specs: Add bond support to rt_link.yaml 2024-04-10 19:35:10 -07:00
rt_route.yaml doc/netlink: Add spec for rt route messages 2023-08-27 17:17:11 -07:00
tc.yaml ynl: rename array-nest to indexed-array 2024-04-05 22:32:49 -07:00
team.yaml Documentation: netlink: add a YAML spec for team 2024-04-02 18:24:32 -07:00