I want to know generic method to find the all the network interfaces of router.
Currently, I am trying to configure new openwrt router and trying to match the physical interfaces on router with the uci configured interfaces.
I tried fetching all the interfaces list from /sys/class/net and tried to check if all the interfaces contains /sys/class/net//device directory in side it to find out whether it is a physical interface or not.
As my router is not configured properly, i am trying to get physical interface data using uci commands.
uci can edit /etc/config/network file.is there any specific methods to identify physical network interfaces from CLI.