Developing lightweight computation at the DSG edge

Commit 9b570964 authored by p4u's avatar p4u
Browse files

Removed WAN bridge. Now each device specified as wan_device creates a different wan interface

parent 0d8a3652
......@@ -395,12 +395,13 @@ qmp_configure_network() {
uci set $conf.loopback.ipaddr=""
uci set $conf.loopback.netmask=""
if qmp_uci_test qmp.interfaces.wan_device ; then
uci set $conf.wan="interface"
uci set $conf.wan.ifname="$(uci get qmp.interfaces.wan_device)"
uci set $conf.wan.type="bridge"
uci set $conf.wan.proto="dhcp"
for i in $(uci get qmp.interfaces.wan_devices) ; do
uci set $conf.wan${wan_offset}="interface"
uci set $conf.wan${wan_offset}.ifname="$i"
uci set $conf.wan${wan_offset}.proto="dhcp"
let wan_offset=${wan_offset}+1
uci set $conf.niit4to6="interface"
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment