IPv6 LLA not available via ubus?

I would like to get the current IPv6 link local address for a given interface. I can see it via `ip a`. But I need it in a machine readable format to use it in my ucode script. Calling the ubus seems to be a good solution for that (`ubus call network.interface dump`). But this only includes the GUA address.

My question is if anybody knows why this is not included and if I could do anything to change that? Also I would be interested in other solutions to get the IPv6 LLA via ucode. (Without doing something like `ip -6 -o addr show dev $interface scope link | awk '{print $4}'| cut -d/ -f1`).

Thank you very much! :sunny:

Something like that?

apk update; apk add ip-full jq
ip -j -6 address list | jq
1 Like

Hmm, yeah, looks like something else should be happening here to get the LLAs:

https://github.com/openwrt/netifd/blob/master/ubus.c#L871

Thanks. This would be ok. But I search for a solution without installing new packages.

Thx for the hint. Looks like this would be the right place for me to create an issue.