Lua/AAF: Identify which kind of WAN connection is currently active in the device

I would like to identify from inside the Lua code of an AAF app:

  • The current IP used by the active WAN interface

  • What kind of WAN interface is currently active (Ethernet? Cell? Wifi?)

I assume devicetree is to be used, but I cannot find any documentation about the available data there.