Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
F
ffbs-gluon
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
darkbit
ffbs-gluon
Commits
2468154a
Commit
2468154a
authored
11 years ago
by
Nils Schneider
Browse files
Options
Downloads
Patches
Plain Diff
gluon-config-mode: add simple-tc settings for mesh_vpn
parent
05633089
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
package/gluon-config-mode/Makefile
+1
-1
1 addition, 1 deletion
package/gluon-config-mode/Makefile
package/gluon-config-mode/files/usr/lib/lua/luci/model/cbi/gluon-config-mode/wizard.lua
+21
-13
21 additions, 13 deletions
...s/usr/lib/lua/luci/model/cbi/gluon-config-mode/wizard.lua
with
22 additions
and
14 deletions
package/gluon-config-mode/Makefile
+
1
−
1
View file @
2468154a
...
...
@@ -15,7 +15,7 @@ define Package/gluon-config-mode
SECTION
:=
gluon
CATEGORY
:=
Gluon
TITLE
:=
Luci based config mode
for
user friendly setup of new meshnodes
DEPENDS
:=
+gluon-core +gluon-location +uhttpd +dnsmasq +luci-mod-admin-core +ip +luci-theme-openwrt +haveged
DEPENDS
:=
+gluon-core +gluon-location
+gluon-simple-tc
+uhttpd +dnsmasq +luci-mod-admin-core +ip +luci-theme-openwrt +haveged
endef
define
Package/gluon-config-mode/description
...
...
This diff is collapsed.
Click to expand it.
package/gluon-config-mode/files/usr/lib/lua/luci/model/cbi/gluon-config-mode/wizard.lua
+
21
−
13
View file @
2468154a
...
...
@@ -15,22 +15,29 @@ o.value = uci:get_first("system", "system", "hostname")
o
.
rmempty
=
false
o
.
datatype
=
"hostname"
o
=
s
:
option
(
Flag
,
"_autoupdate"
,
"Automatische Updates aktivieren?"
)
o
.
default
=
uci
:
get_bool
(
"autoupdater"
,
"settings"
,
"enabled"
)
and
o
.
enabled
or
o
.
disabled
o
.
rmempty
=
false
s
=
f
:
section
(
SimpleSection
,
"Mesh-VPN"
,
nil
)
o
=
s
:
option
(
Flag
,
"_meshvpn"
,
"Mesh-VPN aktivieren?"
)
o
.
default
=
uci
:
get_bool
(
"fastd"
,
meshvpn_name
,
"enabled"
)
and
o
.
enabled
or
o
.
disabled
o
.
rmempty
=
false
local
upstream
,
downstream
upstream
=
string.format
(
"%d KBit/s"
,
uci
:
get_first
(
"freifunk"
,
"bandwidth"
,
"upstream"
))
downstream
=
string.format
(
"%d KBit/s"
,
uci
:
get_first
(
"freifunk"
,
"bandwidth"
,
"downstream"
))
o
=
s
:
option
(
Flag
,
"_limit_enabled"
,
"Bandbreitenbegrenzung aktivieren?"
)
o
.
default
=
uci
:
get_bool
(
"gluon-simple-tc"
,
meshvpn_name
,
"enabled"
)
and
o
.
enabled
or
o
.
disabled
o
.
rmempty
=
false
o
=
s
:
option
(
Flag
,
"_
bw
limit
"
,
"Bandbreitenbegrenzung aktivieren?
"
)
o
.
default
=
uci
:
get
_first
(
"freifunk"
,
"bandwidth"
,
"enabled"
,
"0
"
)
o
=
s
:
option
(
Value
,
"_limit
_ingress"
,
"Downstream
"
)
o
.
value
=
uci
:
get
(
"gluon-simple-tc"
,
meshvpn_name
,
"limit_ingress
"
)
o
.
rmempty
=
false
o
.
d
escription
=
downstream
..
" Downstream / "
..
upstream
..
" Upstream
"
o
.
d
atatype
=
"integer
"
o
=
s
:
option
(
Flag
,
"_autoupdate"
,
"Automatische Updates aktivieren?
"
)
o
.
default
=
uci
:
get
_bool
(
"autoupdater"
,
"settings"
,
"enabled"
)
and
o
.
enabled
or
o
.
disabled
o
=
s
:
option
(
Value
,
"_limit_egress"
,
"Upstream
"
)
o
.
value
=
uci
:
get
(
"gluon-simple-tc"
,
meshvpn_name
,
"limit_egress"
)
o
.
rmempty
=
false
o
.
datatype
=
"integer"
s
=
f
:
section
(
SimpleSection
,
"GPS Koordinaten"
,
"Hier kannst du die GPS Koordinaten deines Knotens festlegen damit er in der Karte angezeigt werden kann."
)
...
...
@@ -56,11 +63,12 @@ function f.handle(self, state, data)
uci
:
save
(
"autoupdater"
)
uci
:
commit
(
"autoupdater"
)
uci
:
foreach
(
"freifunk"
,
"bandwidth"
,
function
(
s
)
uci
:
set
(
"freifunk"
,
s
[
".name"
],
"enabled"
,
data
.
_bwlimit
)
end
)
uci
:
save
(
"freifunk"
)
uci
:
commit
(
"freifunk"
)
uci
:
set
(
"gluon-simple-tc"
,
meshvpn_name
,
"interface"
)
uci
:
set
(
"gluon-simple-tc"
,
meshvpn_name
,
"enabled"
,
data
.
_limit_enabled
)
uci
:
set
(
"gluon-simple-tc"
,
meshvpn_name
,
"ifname"
,
meshvpn_name
)
uci
:
set
(
"gluon-simple-tc"
,
meshvpn_name
,
"limit_ingress"
,
data
.
_limit_ingress
)
uci
:
set
(
"gluon-simple-tc"
,
meshvpn_name
,
"limit_egress"
,
data
.
_limit_egress
)
uci
:
commit
(
"gluon-simple-tc"
)
uci
:
set
(
"fastd"
,
meshvpn_name
,
"enabled"
,
data
.
_meshvpn
)
uci
:
save
(
"fastd"
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment