Developing lightweight computation at the DSG edge

Commit e8182b1f authored by p4u's avatar p4u
Browse files

If mesh ipv6 address is defined, bmx6 uses it, if not it will use the autogenerated

parent 4109b4e0
......@@ -473,14 +473,12 @@ qmp_configure_network() {
local mesh="mesh_${protocol_name}_${counter}"
local ip6_suffix="2002::${counter}${vid_suffix}" #put typical IPv6 prefix (2002::), otherwise ipv6 calc assumes mapped or embedded ipv4 address
if qmp_uci_test qmp.networks.${protocol_name}_mesh_prefix48; then
uci set $conf.$mesh="interface"
uci set $conf.$mesh.ifname="$dev.$vid"
uci set $conf.$mesh.proto="static"
if [ "$protocol_name" != "bmx6" ]; then
if qmp_uci_test qmp.networks.${protocol_name}_mesh_prefix48; then
uci set $conf.$mesh.ip6addr="$(qmp_get_ula96 $(uci get qmp.networks.${protocol_name}_mesh_prefix48):: $primary_mesh_device $ip6_suffix 128)"
fi
fi
done
......
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