Get a statictic about a PPP network interface using ubus call network.interface.xxx status

We use OpenWRT 18.06.01 on an Orange Pi Zero board. We have an EG25 LTE modem connected to USB port.
Using pppd we establish a connection to a mobile ISP, get a ppp0 interface with an assigned ip alongside with a gateway ip and mobile ISP's dns servers.

We need to monitor changes happening on network interfaces. For ethernet and wifi interfaces we can use ubus (ubus call network.interface.lan/network.interface.client_wifi status). But with ppp interface(s) we can't - there's no ubus path for our ppp0 interface, created dynamically.

As we got, netifd servise is responsible for implementing network.interface.xxx RPC procedures, should we dig into it to make it aware about our dynamically created interface, or we miss something and there's some other way to monitor changes on ppp interfaces?

Thanks in advance for any help...

Sounds like you bypass netifd for your PPP connection. The proper solution would be using a protocol handler like 3g / wwan which properly registers the created PPP device with netifd.

1 Like

Thanks a lot for the answer. I'll dig into netifd's handlers more.

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.