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
28c7e0e2
Commit
28c7e0e2
authored
10 years ago
by
Kokel
Browse files
Options
Downloads
Patches
Plain Diff
add documentation for roles feature add by
https://github.com/freifunk-gluon/packages/pull/83
parent
8f853aaa
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
docs/features/roles.rst
+32
-0
32 additions, 0 deletions
docs/features/roles.rst
docs/index.rst
+1
-0
1 addition, 0 deletions
docs/index.rst
docs/site-example/site.conf
+11
-0
11 additions, 0 deletions
docs/site-example/site.conf
docs/user/site.rst
+20
-0
20 additions, 0 deletions
docs/user/site.rst
with
64 additions
and
0 deletions
docs/features/roles.rst
0 → 100644
+
32
−
0
View file @
28c7e0e2
Roles
=====
It is possible to define a set of roles you want to distinguish at backend side. One node can own one
role which it will announce via alfred inside the mesh. This will make it easier to differentiate
nodes when parsing alfred data. E.g to count only **normal** nodes and not the gateways
or servers (nodemap). A lot of things are possible.
For this the section ``roles`` in ``site.conf`` is needed::
roles = {
default = 'node',
list = {
node = 'Normal Node',
test = 'Test Node',
backbone = 'Backbone Node',
service = 'Service Node',
},
},
The value of ``default`` is the role every node will initially own. This value should be part of ``list`` as well.
If you want node owners to change the defined roles via config-mode you can add the package
``gluon-luci-node-role`` to your ``site.mk``. Then, you can select one of the defined roles from a dropdown list
where the right-handed value is the one which is displayed and the left-handed key the one which is configured into
the system.
The role is saved in ``gluon-node-info.system.role``. To change the role using command line do::
uci set gluon-node-info.system.role="$ROLE"
uci commit
Please replace ``$ROLE`` by the role you want the node to own.
This diff is collapsed.
Click to expand it.
docs/index.rst
+
1
−
0
View file @
28c7e0e2
...
...
@@ -27,6 +27,7 @@ Features
features/mesh-on-wan
features/announce
features/authorized-keys
features/roles
Developer Documentation
-----------------------
...
...
This diff is collapsed.
Click to expand it.
docs/site-example/site.conf
+
11
−
0
View file @
28c7e0e2
...
...
@@ -135,6 +135,17 @@
},
},
--
Node
roles
--
roles
{
--
default
=
'node'
,
--
list
= {
--
node
=
'Normal Node'
,
--
test
=
'Test Node'
,
--
backbone
=
'Backbone Node'
,
--
service
=
'Service Node'
,
-- },
-- },
--
Bandwidth
limiting
simple_tc
= {
mesh_vpn
= {
...
...
This diff is collapsed.
Click to expand it.
docs/user/site.rst
+
20
−
0
View file @
28c7e0e2
...
...
@@ -139,6 +139,26 @@ autoupdater : package
}
}
roles : optional
Optional role definitions. With this nodes will announce their role inside the mesh.
In the backend this adds the facility to distinguish between normal, backbone and
service nodes or even gateways (if they advertise the role, also). It is up to
the community which roles to define. See the section below as an example.
``default`` takes the default role which is set initially. This value should be
part of ``list``. If you want node owners to change the role via config mode add
the package ``gluon-luci-node-role`` to ``site.mk``.
::
roles = {
default = 'node',
list = {
node = 'Normal Node',
test = 'Test Node',
backbone = 'Backbone Node',
service = 'Service Node',
},
},
simple_tc : package
Uplink traffic control
::
...
...
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