Developing lightweight computation at the DSG edge
Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Quick Mesh Project
qMp packages
Commits
5bb59193
Commit
5bb59193
authored
May 26, 2013
by
p4u
Browse files
Add tableRule option in qmp_add_qmp_bmx6_tunnels, some other minr syntax changes
parent
f5a083d3
Changes
1
Hide whitespace changes
Inline
Side-by-side
packages/qmp-system/files/etc/qmp/qmp_functions.sh
View file @
5bb59193
...
...
@@ -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
))
"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment