forked from openthread/ot-ns
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updates/Fixes: merge in recent OTNS1 PRs (#161)
This commit includes all PRs merged into OTNS (v1) main branch, since the OTNS (v2) fork was created in 2022. Some PRs are applied as is, others are adapted to the new OTNS2 codebase. Also this includes version increases for Go 1.x and some Go and Python libraries used to newer versions. It also introduces some new features that were needed to optimally merge the PRs according to their intent. * YAML based startup script configuration: some node types (ftd/mtd/br) can now have their own unique startup command sequence, encoded in the same script file. This also enables for the future a fully YAML based configuration of a simulation including all node positions, radio models, startup scripts, etc. * [github-actions] fix for pushes do not run CI (openthread#395) - this was not done. It appears it is currently not needed, leads to many cancelled CI tasks. CI tasks will run already on every push to the PR branch. Keeping this note as informative message. * update golangci-lint tool and fix pretty issue based on commit abf59e0 * [script] install python3-venv as an attempt to fix failing Docker build * Bump wheel from 0.34.2 to 0.38.1 in /pylibs/unittests (openthread#439) Bumps [wheel](https://github.com/pypa/wheel) from 0.34.2 to 0.38.1. - [Release notes](https://github.com/pypa/wheel/releases) - [Changelog](https://github.com/pypa/wheel/blob/main/docs/news.rst) - [Commits](pypa/wheel@0.34.2...0.38.1) --- updated-dependencies: - dependency-name: wheel dependency-type: direct:production ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Bump golang.org/x/net from 0.0.0-20201021035429-f5854403a974 to 0.7.0 (openthread#478) Bumps [golang.org/x/net](https://github.com/golang/net) from 0.0.0-20201021035429-f5854403a974 to 0.7.0. - [Release notes](https://github.com/golang/net/releases) - [Commits](https://github.com/golang/net/commits/v0.7.0) --- updated-dependencies: - dependency-name: golang.org/x/net dependency-type: indirect ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * [.github][go.mod] update to go 1.22 * [.github] some version quoting issues / bump setup-go action * [.github][GUIDE][go.mod] require Go 1.18 minimum; build for 1.20 and 1.22 also; clarified GUIDE * docker file updates -> go 1.22 / removed unneeded items * [script] fix hanging golangci-lint for go 1.20, 1.22 - bump version to 1.59.0 * [scripts] add wheel to install_python_libs() (openthread#485) This should address this warning https://github.com/openthread/openthread/actions/runs/4321875033/jobs/7543625431#step:8:348 * [.github] quote go versions * [dependabot] reduce frequency to monthly (openthread#494) * [all] [tests] properly configure operational dataset (openthread#502) * [pylibs] fix raw test_commissioning by giving more time for nodes to scan channels. * [.github] change order of unit tests * [openthread] bump * Bump grpcio from 1.46.3 to 1.53.0 in /pylibs/unittests (openthread#506) Bumps [grpcio](https://github.com/grpc/grpc) from 1.46.3 to 1.53.0. - [Release notes](https://github.com/grpc/grpc/releases) - [Changelog](https://github.com/grpc/grpc/blob/master/doc/grpc_release_schedule.md) - [Commits](grpc/grpc@v1.46.3...v1.53.0) --- updated-dependencies: - dependency-name: grpcio dependency-type: direct:production ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * [pylibs] fixes requirements.txt bump protobuf, wheel * [go.mod] lib versions update * [otnstester][cli] fix cli unit-test * [pylibs] in tests don't set trace watch level by default / remove unnecessary 'watch default debug' * [script] fix issue that historic commits not found in --depth 1 cloned repo. * [pylibs] force_key_rotation test extension * [pylibs] increase network-limits time limit for case BR is a Parent, to avoid spurious test fails. * [pylibs] otns-performance stress test runs with fixed random seed (to get a more predictable baseline performance for number of events), to avoid spurious test fails on number of events. --------- Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: Simon Lin <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Mason Tran <[email protected]> Co-authored-by: Jonathan Hui <[email protected]>
- Loading branch information
1 parent
4f5bf08
commit d7c2ae5
Showing
40 changed files
with
792 additions
and
581 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
run: | ||
skip-files: | ||
- "web/site/bindata.go" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
# | ||
# Example OT node CLI script, which can be passed to otns using the -ot-script parameter. | ||
# It's in YAML format. Script comment lines start with '#'. | ||
# TODO: enable using script config in same file with YAML network config. | ||
# | ||
|
||
script: | ||
ftd: | | ||
# Active Dataset parameters. This only works for an FTD (e.g. type 'router' or 'fed'). | ||
# Therefore it's in the 'ftd' script section. | ||
dataset init new | ||
dataset networkname Test\ Network | ||
dataset panid 0x1234 | ||
dataset channel 15 | ||
dataset networkkey 998877665544332211ffeeddccbbaa00 | ||
dataset meshlocalprefix fd00:abba:: | ||
dataset commit active | ||
# Some extra settings - differ from usual setup. | ||
routerselectionjitter 10 | ||
mtd: | | ||
# MTD not able to use 'dataset init new'. Therefore, other way of providing active dataset. | ||
networkkey 998877665544332211ffeeddccbbaa00 | ||
panid 0x1234 | ||
channel 15 | ||
br: | | ||
# BR-specific configuration goes here. There's some spaces at EOL to test script-parsing. | ||
############# | ||
routerselectionjitter 1 | ||
routerdowngradethreshold 33 | ||
routerupgradethreshold 33 | ||
netdata publish route fc00::/7 s med | ||
bbr enable | ||
srp server enable | ||
br init 1 1 | ||
br enable | ||
all: | | ||
# Some extra settings - differ from usual setup. These are applied to all node types, | ||
# except for 'raw' added nodes. | ||
ccathreshold -50 | ||
txpower 10 | ||
# Autostart the node | ||
ifconfig up | ||
thread start |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.