no default route written using proto=wwan
Username: chmielewskiandreas
Origin: https://bugs.openwrt.org/index.php?do=details&task_id=626
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”} }