Skip to content

Commit

Permalink
[tutorials] Added mesh network (802.11s) tutorial
Browse files Browse the repository at this point in the history
  • Loading branch information
nemesifier committed Jan 30, 2024
1 parent 93551d7 commit 958776d
Show file tree
Hide file tree
Showing 17 changed files with 453 additions and 4 deletions.
9 changes: 5 additions & 4 deletions check_line_length.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,14 @@
LIMIT_CODE = 114


def check_url(line):
def should_skip_check(line):
"""
Check if there is a url present in the given line
Check if there is a pattern in this line
that indicates we should skip the check
"""
pattern = 'http[s]?://(?:[a-zA-Z]|[0-9]|[$-_@.&+]|[!*\\(\\), ]|(?:%[0-9a-fA-F][0-9a-fA-F]))+'
url = re.findall(pattern, line)
return bool(url)
return '"contents": "' in line or bool(url)


def check_line_length(file_path):
Expand Down Expand Up @@ -54,7 +55,7 @@ def check_line_length(file_path):
limit_type = 'text'
limit = LIMIT_TEXT
length = len(line)
if length > limit and check_url(line) is not True:
if length > limit and should_skip_check(line) is not True:
errors.append(
'line {} in file {} is longer '
'than {} characters'.format(line_number, file, limit)
Expand Down
Binary file added images/mesh/advanced-mode.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/mesh/assign-mesh-template.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/mesh/back-to-normal-mode.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/mesh/create-template.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/mesh/mesh-network-topology-demo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/mesh/mesh-network-topology-detail.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/mesh/mesh-network-topology-graph.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/mesh/mesh-network-topology-list.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/mesh/mesh-network-topology.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/mesh/save.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/mesh/status-br-lan.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/mesh/status-mesh0-associated-clients.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/mesh/status-mesh0.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/mesh/status-wlan0.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ Contents:
tutorials/demo
tutorials/wifi-access-point.rst
tutorials/hotspot
tutorials/mesh
general/architecture
general/values
general/help-us
Expand Down
Loading

0 comments on commit 958776d

Please sign in to comment.