Developing lightweight computation at the DSG edge

Commit f52df5fc authored by Simó Albert i Beltran's avatar Simó Albert i Beltran
Browse files

Enable policy-routing for tunnels routes and throw rules on bmx6, closes #136.

parent 32a39cea
......@@ -39,6 +39,9 @@ config 'qmp' 'networks'
option 'bmx6_ipv4_prefix24' '10.202'
# option 'bmx6_ipv4_address' '10.202.9.01/24' # if commented out then option is autoconfigured based on
# community_node_id and bmx6_ipv4_prefix
option 'bmx6_tablePrefTuns' '7000'
option 'bmx6_tableTuns' '70'
option 'bmx6_throwRules' '1'
option 'babel_mesh_prefix48' 'fd03:0:0'
option 'netserver' '1'
......
......@@ -557,7 +557,15 @@ qmp_configure_bmx6() {
uci set $conf.ipVersion=ipVersion
uci set $conf.ipVersion.ipVersion="6"
uci set $conf.ipVersion.throwRules="0"
if value="$(uci get qmp.networks.bmx6_throwRules)" ; then
uci set $conf.ipVersion.throwRules="$value"
fi
if value="$(uci get qmp.networks.bmx6_tablePrefTuns)"; then
uci set $conf.ipVersion.tablePrefTuns="$value"
fi
if value=$(uci get qmp.networks.bmx6_tableTuns); then
uci set $conf.ipVersion.tableTuns="$value"
fi
local primary_mesh_device="$(uci get qmp.interfaces.mesh_devices | awk '{print $1}')"
......
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