** Changed in: linux (Ubuntu)
Status: New => Invalid
--
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to iproute2 in Ubuntu.
https://bugs.launchpad.net/bugs/2121908
Title:
Invalid JSON Output for VXLAN Interfaces in `ip` arm64
Status in iproute2 package in Ubuntu:
New
Status in linux package in Ubuntu:
Invalid
Bug description:
Ubuntu 6.14.0-29.29~24.04.1-generic 6.14.8
1. The release of Ubuntu you are using, via 'lsb_release -rd' or System ->
About Ubuntu
```
Description: Ubuntu 22.04.5 LTS
Release: 22.04
```
2. The version of the package you are using, via 'apt-cache policy
pkgname' or by checking in Software Center
This might be a bug in the `iproute2` package?
```
iproute2:
Installed: 5.15.0-1ubuntu2
Candidate: 5.15.0-1ubuntu2
Version table:
*** 5.15.0-1ubuntu2 500
500 http://ports.ubuntu.com/ubuntu-ports jammy/main arm64 Packages
100 /var/lib/dpkg/status
```
3. What you expected to happen
Running the command `ip -d -j link list type vxlan` should return
valid JSON.
4. What happened instead
When attempting to query the JSON representation of the `ip` command for
VXLAN type interfaces, the command returns invalid JSON. For example, running
`ip -d -j link list type vxlan` produces:
```
[{"ifindex":4,"ifname":"cilium_vxlan","flags":["BROADCAST","MULTICAST","UP","LOWER_UP"],"mtu":1500,"qdisc":"noqueue","operstate":"UNKNOWN","linkmode":"DEFAULT","group":"default","link_type":"ether","address":"8e:4d:eb:98:d1:67","broadcast":"ff:ff:ff:ff:ff:ff","promiscuity":0,"min_mtu":68,"max_mtu":65535,"linkinfo":{"info_kind":"vxlan","info_data":{"external":true,"id":0fan-map
,"port_range":{"low":0,"high":0},"port":8472,"learning":false,"ttl":0,"df":"unset","ageing":300,"udp_csum":true,"udp_zero_csum6_tx":false,"udp_zero_csum6_rx":false}},"inet6_addr_gen_mode":"eui64","num_tx_queues":1,"num_rx_queues":1,"gso_max_size":65536,"gso_max_segs":65535}]
```
If you pipe this result into `jq`, it fails with the following error:
```
ubuntu@juju-a553ef-2:~$ ip -d -j link list type vxlan | jq
parse error: Invalid numeric literal at line 1, column 380
```
The VXLAN VNI value appears to be combined with fan-map, causing the
JSON to be invalid:
```
... {"external":true,"id":0fan-map ,"port_range": ...
```
Querying the same interface without using the JSON representation,
returns what appears to be a valid default `ip` representation:
4: cilium_vxlan: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue
state UNKNOWN mode DEFAULT group default
link/ether 8e:4d:eb:98:d1:67 brd ff:ff:ff:ff:ff:ff promiscuity 0 minmtu
68 maxmtu 65535
vxlan external id 0 fan-map srcport 0 0 dstport 8472 nolearning ttl auto
ageing 300 udpcsum noudp6zerocsumtx noudp6zerocsumrx addrgenmode eui64
numtxqueues 1 numrxqueues 1 gso_max_size 65536 gso_max_segs 65535
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/iproute2/+bug/2121908/+subscriptions
--
Mailing list: https://launchpad.net/~touch-packages
Post to : [email protected]
Unsubscribe : https://launchpad.net/~touch-packages
More help : https://help.launchpad.net/ListHelp