#19116: "/lib/functions/network.sh; network_get_device" returns empty
-----------------------+-----------------------------------
Reporter: n0nb@… | Owner: developers
Type: defect | Status: new
Priority: normal | Milestone:
Component: packages | Version: Barrier Breaker 14.07
Resolution: | Keywords:
-----------------------+-----------------------------------
Comment (by n0nb@…):
Replying to [comment:1 yousong]:
> You may want to consult the output of command `ubus call
network.interface.wan status`. Besides `network_get_device` which will
retrieve l3 device name, there is also `network_get_physdev` for l2
device.
The issue I am trying to report is that the `network_get_device` function
returns nothing on my two installations, not that I couldn't figure out
the physical name of the WAN port. Sorry if I was unclear.
I'm not sure if this is intended to be a universal function but when I
looked at its definition my understanding is that looking to match a
string with "`.interface`" in it, although I could be wrong.
BTW, `network_get_physdev` does return the proper physical device for my
WAN port. I may add this alternate command the Wiki recipe page.
--
Ticket URL: <https://dev.openwrt.org/ticket/19116#comment:3>
OpenWrt <http://openwrt.org>
Opensource Wireless Router Technology
_______________________________________________
openwrt-tickets mailing list
[email protected]
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-tickets