module: network: add 'kind' tag

The tag maps to the IFLA_INFO_KIND (part of the IFLA_LINKINFO)
netlink attribute.

This attribute is only available on virtual interfaces. Examples of
valid values are:

* bond
* bridge
* gre
* tun
* veth
This commit is contained in:
Daniel Eklöf 2024-04-30 10:22:04 +02:00
parent a5ae61b5df
commit 699c563051
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F
3 changed files with 93 additions and 48 deletions

View file

@ -25,6 +25,12 @@ address per network interface.
: string
: Interface type (*ether*, *wlan*, *loopback*, or *ARPHRD_NNN*, where
*N* is a number).
| kind
: string
: Interface kind. Empty for non-virtual interfaces. For virtual
interfaces, this value is taken from the _IFLA\_INFO\_KIND_ netlink
attribute. Examples of valid values are *bond*, *bridge*, *gre*, *tun*
and *veth*.
| index
: int
: Network interface index