netlink: specs: rt_addr: fix the spec format / schema failures
authorJakub Kicinski <kuba@kernel.org>
Thu, 3 Apr 2025 01:37:03 +0000 (18:37 -0700)
committerJakub Kicinski <kuba@kernel.org>
Fri, 4 Apr 2025 14:36:05 +0000 (07:36 -0700)
The spec is mis-formatted, schema validation says:

  Failed validating 'type' in schema['properties']['operations']['properties']['list']['items']['properties']['dump']['properties']['request']['properties']['value']:
    {'minimum': 0, 'type': 'integer'}

  On instance['operations']['list'][3]['dump']['request']['value']:
    '58 - ifa-family'

The ifa-family clearly wants to be part of an attribute list.

Reviewed-by: Jacob Keller <jacob.e.keller@intel.com>
Reviewed-by: Donald Hunter <donald.hunter@gmail.com>
Reviewed-by: Yuyang Huang <yuyanghuang@google.com>
Fixes: 4f280376e531 ("selftests/net: Add selftest for IPv4 RTM_GETMULTICAST support")
Link: https://patch.msgid.link/20250403013706.2828322-2-kuba@kernel.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Documentation/netlink/specs/rt_addr.yaml

index 5dd5469044c7930123da9cf7136f419dda4d5650..3bc9b6f9087e9af3bf2bf9d38211974807ca64d8 100644 (file)
@@ -187,6 +187,7 @@ operations:
       dump:
         request:
           value: 58
+          attributes:
             - ifa-family
         reply:
           value: 58