[FS#626] no default route written using proto=wwan

LEDE Bugs lede-bugs at lists.infradead.org
Mon Mar 13 11:53:37 PDT 2017


A new Flyspray task has been opened.  Details are below. 

User who did this - chmielewskiandreas (chmielewskiandreas) 

Attached to Project - LEDE Project
Summary - no default route written using proto=wwan 
Task Type - Bug Report
Category - Base system
Status - Unconfirmed
Assigned To - 
Operating System - All
Severity - Medium
Priority - Very Low
Reported Version - Trunk
Due in Version - Undecided
Due Date - Undecided
Details -  LEDE_RELEASE=”LEDE Reboot 17.01-SNAPSHOT r6469+17-c114383”

Configure steps as follows:

Run ubus listen in backround
ubus -t 9999 listen &


uci del network.wwan
uci set network.wwan=interface
uci set network.wwan.proto=wwan
uci set network.wwan.defaultroute=’0’
uci set network.wwan.pincode=xxx
uci set network.wwan.apn=xxx
uci commit && /etc/init.d/network restart
...
{ “ubus.object.add”: {”id”:107055350,”path”:”network.interface.wwan_4”} }
{ “network.interface”: {”action”:”ifup”,”interface”:”wwan_4”} }
...


As you see default route should not be written immediately. You see default route in inactive section in ubus. So now lets set the default route for this interface


uci set network.wwan.defaultroute='1'
uci commit && /etc/init.d/network reload


You see no ubus message as well no change of default route. Now lets use QMI proto directly


uci del network.wwan
uci set network.wwan=interface
uci set network.wwan.proto=qmi
uci set network.wwan.device=/dev/cdc-wdm0
uci set network.wwan.defaultroute=’0’
uci set network.wwan.pincode=xxx
uci set network.wwan.apn=xxx
uci commit && /etc/init.d/network restart
...
{ “ubus.object.add”: {”id”:107055350,”path”:”network.interface.wwan_4”} }
{ “network.interface”: {”action”:”ifup”,”interface”:”wwan_4”} }
...


So now lets set the default route for this interface and you see ubus messages comming up as well default route is set


uci set network.wwan.defaultroute='1'
uci commit && /etc/init.d/network reload
{ “network.interface”: {”action”:”ifdown”,”interface”:”wwan”} }
{ “network.interface”: {”action”:”ifdown”,”interface”:”wwan_4”} }
{ “ubus.object.remove”: {”id”:399408035,”path”:”network.interface.wwan_4”} }
{ “network.interface”: {”action”:”ifup”,”interface”:”wan2”} }
{ “network.interface”: {”action”:”ifup”,”interface”:”wwan”} }
{ “ubus.object.add”: {”id”:828745890,”path”:”network.interface.wwan_4”} }
{ “network.interface”: {”action”:”ifup”,”interface”:”wwan_4”} } 


More information can be found at the following URL:
https://bugs.lede-project.org/index.php?do=details&task_id=626



More information about the lede-bugs mailing list