Files
openthread/tests/toranj
Abtin Keshavarzian c4b6206f16 [srp-client] new feature to allow lease and key lease per service (#8211)
This commit add a new feature in `Srp::Client` to allow user to
specify the lease and/or key lease intervals explicitly per service.
The lease intervals in a service can be left unspecified(set to zero)
in which case the default lease intervals will be used.

In an SRP Update message, the lease info is included in additional
section in an Update Lease Option record. Therefore the lease values
are applicable to the entire message and all its records. If we have
services with different lease intervals, they need to be registered
in separate messages. This commit updates `Srp::Client` to implement
such a mechanism. When preparing an SRP message, we first determine
the lease and key lease intervals and ensure the services using
matching intervals are included in the message.

This commit also updates and simplifies the "single service mode"
functionality to use the newly added mechanism for tracking which
services are included in the message.

This commit adds `test_srp_register_services_diff_lease` which covers
the behavior of the newly added mechanisms.
2022-10-06 18:31:25 -07:00
..

toranj test framework

toranj is a test framework for OpenThread.

It provides two modes:

  • toranj-cli which enables testing of OpenThread using its CLI interface.
  • toranj-ncp which enables testing of the combined behavior of OpenThread (in NCP mode), spinel interface, and wpantund driver 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).
  • toranj in NCP mode runs wpantund natively with OpenThread in NCP mode on simulation platform (real-time).
  • toranj in CLI mode runs ot-cli-ftd on simulation platform (real-time).
  • toranj tests run as part of GitHub Actions pull request validation in OpenThread and wpantund GitHub projects.

toranj modes


What does "toranj" mean? it's the name of a common symmetric weaving pattern used in Persian carpets.