Developing lightweight computation at the DSG edge

Commit 67705ffe authored by p4u's avatar p4u
Browse files

Modified gw functions to be compatible with last bmx6. Disabled publish_lan...

Modified gw functions to be compatible with last bmx6. Disabled publish_lan because HNA is deprecated
parent 622665d7
......@@ -585,23 +585,29 @@ qmp_configure_bmx6() {
uci set $conf.tun6Out.mtu=1400
fi
if qmp_uci_test qmp.tunnels.offer_ipv6_tunnel ; then
uci set $conf.tun6InNet="tunInNet"
uci set $conf.tun6InNet.tunInNet="$(uci get qmp.tunnels.offer_ipv6_tunnel)"
uci set $conf.tun6InNet.bandwidth="1000000"
fi
if qmp_uci_test qmp.tunnels.search_ipv4_tunnel ; then
uci set $conf.tun4Out="tunOut"
uci set $conf.tun4Out.tunOut="tun4Out"
uci set $conf.tun4Out.network="$(uci get qmp.tunnels.search_ipv4_tunnel)"
uci set $conf.tun4Out.mtu=1400
fi
elif qmp_uci_test qmp.tunnels.offer_ipv4_tunnel ; then
uci set $conf.tunInRemote="tunInRemote"
uci set $conf.tunInRemote.tunInRemote="$(qmp_get_ula96 $(uci get qmp.networks.bmx6_mesh_prefix48):: $primary_mesh_device 2002::ffff )"
if qmp_uci_test qmp.tunnels.offer_ipv4_tunnel ; then
# Deprecated
# uci set $conf.tunInRemote="tunInRemote"
# uci set $conf.tunInRemote.tunInRemote="$(qmp_get_ula96 $(uci get qmp.networks.bmx6_mesh_prefix48):: $primary_mesh_device 2002::ffff )"
uci set $conf.tun4InNet="tunInNet"
uci set $conf.tun4InNet.tunInNet="$(uci get qmp.tunnels.offer_ipv4_tunnel)"
uci set $conf.tun4InNet.bandwidth="1000000"
fi
#Configuring the tunnel to search 10/8 networks
uci set $conf.nodes10="tunOut"
uci set $conf.nodes10.tunOut="nodes10"
......
......@@ -42,8 +42,12 @@ qmp_disable_netserver() {
killall -9 netserver || true
}
## DISABLED
# Publish or unpublish lan HNA depending on qmp configuration
qmp_publish_lan() {
echo "Publish LAN is a garbage, doing nothing..."
return
is_publish_on=$(qmp_uci_get networks.publish_lan)
[ -z "$is_publish_on" ] && is_publish_on=0
......
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