It's easy enough to obtain the real interface given one has the wan?
alias:

# uci -p /var/state get network.wan0.ifname
eth0.1
# uci -p /var/state get network.wan0.device
eth0.1

As you can see, either works.  There does not seem to be key to go the
other way though.

I know the real interface, but I need to know it's wan? alias so that I
can look up other keys, like "network.wan0.gateway".

Thots?

b.

Attachment: signature.asc
Description: This is a digitally signed message part

_______________________________________________
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel

Reply via email to