linux/Documentation/userspace-api/netlink
Hangbin Liu a7408b56e5 ynl: support binary and integer sub-type for indexed-array
Add binary and integer sub-type support for indexed-array to display bond
arp and ns targets. Here is what the result looks like:

 # ip link add bond0 type bond mode 1 \
   arp_ip_target 192.168.1.1,192.168.1.2 ns_ip6_target 2001::1,2001::2
 # ./tools/net/ynl/cli.py --spec Documentation/netlink/specs/rt_link.yaml \
   --do getlink --json '{"ifname": "bond0"}' --output-json | jq '.linkinfo'

    "arp-ip-target": [
      "192.168.1.1",
      "192.168.1.2"
    ],
    [...]
    "ns-ip6-target": [
      "2001::1",
      "2001::2"
    ],

Signed-off-by: Hangbin Liu <liuhangbin@gmail.com>
Link: https://lore.kernel.org/r/20240404063114.1221532-3-liuhangbin@gmail.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
2024-04-05 22:32:49 -07:00
..
c-code-gen.rst docs: add more netlink docs (incl. spec docs) 2023-01-24 10:58:11 +01:00
genetlink-legacy.rst ynl: support binary and integer sub-type for indexed-array 2024-04-05 22:32:49 -07:00
index.rst docs: netlink: link to family documentations from spec info 2023-11-30 23:17:53 -08:00
intro-specs.rst tools: ynl: user space helpers 2023-06-06 12:31:31 -07:00
intro.rst docs: netlink: add NLMSG_DONE message format for doit actions 2023-12-04 14:42:12 -08:00
netlink-raw.rst doc/netlink: Describe nested structs in netlink raw docs 2024-01-31 21:19:19 -08:00
specs.rst docs: netlink: link to family documentations from spec info 2023-11-30 23:17:53 -08:00