linux-next/Documentation/netlink
Ido Schimmel d26b8267d9 netlink: specs: Add route flow label attribute
Add the new flow label attribute to the spec. Example:

 # ip link add name dummy1 up type dummy
 # ip -6 route add default table 254 dev dummy1
 # ip -6 route add default table 10 dev dummy1
 # ./tools/net/ynl/cli.py --spec Documentation/netlink/specs/rt_rule.yaml \
	--do newrule \
	--json '{"family": 10, "priority": 1, "flowlabel": 10, "flowlabel-mask": 255, "action": 1, "table": 10}'
 None
 $ ./tools/net/ynl/cli.py --spec Documentation/netlink/specs/rt_route.yaml \
	--do getroute \
	--json '{"rtm-family": 10, "rta-flowlabel": 1}' --output-json \
	| jq '.["rta-table"]'
 254
 $ ./tools/net/ynl/cli.py --spec Documentation/netlink/specs/rt_route.yaml \
	--do getroute \
	--json '{"rtm-family": 10, "rta-flowlabel": 10}' --output-json \
	| jq '.["rta-table"]'
 10

Reviewed-by: Petr Machata <petrm@nvidia.com>
Signed-off-by: Ido Schimmel <idosch@nvidia.com>
Reviewed-by: Guillaume Nault <gnault@redhat.com>
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
2024-12-19 16:02:22 +01:00
..
specs netlink: specs: Add route flow label attribute 2024-12-19 16:02:22 +01:00
genetlink-c.yaml ynl: support enum-cnt-name attribute in legacy definitions 2024-12-05 12:03:03 -08:00
genetlink-legacy.yaml ynl: support enum-cnt-name attribute in legacy definitions 2024-12-05 12:03:03 -08:00
genetlink.yaml ynl: rename array-nest to indexed-array 2024-04-05 22:32:49 -07:00
netlink-raw.yaml netlink: specs: add uint, sint to netlink-raw schema 2024-12-15 13:55:57 -08:00