Developing lightweight computation at the DSG edge

Commit 5bb59193 authored by p4u's avatar p4u
Browse files

Add tableRule option in qmp_add_qmp_bmx6_tunnels, some other minr syntax changes

parent f5a083d3
......@@ -177,7 +177,6 @@ qmp_get_devices() {
echo "$devices"
}
qmp_get_rescue_ip() {
local device=$1
local mac=""
......@@ -271,7 +270,6 @@ qmp_configure_smart_network() {
qmp_uci_set interfaces.wan_devices "$wan"
}
qmp_attach_device_to_interface() {
local device=$1
local conf=$2
......@@ -319,8 +317,6 @@ qmp_configure_rescue_ip() {
uci commit $conf
}
qmp_is_routerstationpro() {
cat /proc/cpuinfo | grep -q "^machine[[:space:]]*: Ubiquiti RouterStation Pro$"
}
......@@ -488,12 +484,6 @@ qmp_get_ip6_slow() {
echo "$addr_out"
}
qmp_get_ip6_fast() {
if ! [ -x /usr/bin/ipv6calc ] ; then
......@@ -933,15 +923,12 @@ qmp_add_qmp_bmx6_tunnels()
bmx6_type=tunOut
uci set $config.$name="$bmx6_type"
uci set $config.$name.$bmx6_type="$name"
qmp_translate_configuration qmp $section network $config $name
qmp_translate_configuration qmp $section gwName $config $name
qmp_translate_configuration qmp $section address $config $name
qmp_translate_configuration qmp $section minPrefixLen $config $name
qmp_translate_configuration qmp $section maxPrefixLen $config $name
qmp_translate_configuration qmp $section hysteresis $config $name
qmp_translate_configuration qmp $section bonus $config $name
qmp_translate_configuration qmp $section minBandwidth $config $name
qmp_translate_configuration qmp $section exportDistance $config $name
local t
for t in network gwName address minPrefixLen maxPrefixLen hysteresis bonus \
tableRule minBandwidth exportDistance
do
qmp_translate_configuration qmp $section $t $config $name
done
fi
gateway="$(($gateway + 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