mirror of
https://github.com/espressif/openthread.git
synced 2026-07-27 22:37:45 +00:00
This commit adds lease and remaining lease information to the output of `srp server host` and `srp server service` CLI commands. The information includes: - `lease`: The total lease time in seconds. - `key-lease`: The total key lease time in seconds. - `remaining lease`: The remaining lease time in seconds (with millisecond precision). - `remaining key-lease`: The remaining key lease time in seconds (with millisecond precision). A new utility method `OutputMsecDurationInSec()` is added to `Utils` class to format durations in milliseconds as seconds with a fractional part. The SRP server host and service output parsers in `tests/scripts/thread-cert/node.py`, `tests/toranj/cli/cli.py`, and `tools/otci/otci/otci.py` are updated to correctly handle the new fields for both active and deleted entries.
toranj test framework
toranj is a test framework for OpenThread.
It provides two modes:
toranj-cliwhich enables testing of OpenThread using its CLI interface.toranj-ncpwhich enables testing of the combined behavior of OpenThread (in NCP mode), spinel interface, andwpantunddriver on linux.
toranj features:
- It is developed in Python.
- It can be used to simulate multiple nodes forming complex network topologies.
- It allows testing of network interactions between many nodes (IPv6 traffic exchanges).
toranjin NCP mode runswpantundnatively with OpenThread in NCP mode on simulation platform (real-time).toranjin CLI mode runsot-cli-ftdon simulation platform (real-time).toranjtests run as part of GitHub Actions pull request validation in OpenThread andwpantundGitHub projects.
toranj modes
What does "toranj" mean? it's the name of a common symmetric weaving pattern used in Persian carpets.