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