doc: update section on transport protocol

Simplify and add paragraph on how to select proto from test-sh.

Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
This commit is contained in:
Joachim Wiberg
2024-08-22 21:52:36 +02:00
parent 6a7900c6d1
commit 2f5becf8b2
+11 -4
View File
@@ -256,13 +256,20 @@ the whole suite) with identical topology mappings:
$ make PYTHONHASHSEED=3773822171 INFIX_TESTS=case/ietf_system/hostname.py test
### Determinstic use of communication protocol (NETCONF/RESTCONF)
### Deterministic Transport Protocol
By default the protocol will be chosen randomly. If you supply a
`PYTHONHASHSEED` as described above, you will get the same protocol
chosen. If you want to choose the communcation protocol:
By default, the communication transport protocol (NETCONF/RESTCONF) is
chosen randomly. If you supply a `PYTHONHASHSEED` as described above,
you get the same protocol used for that hash. But if you want to choose
the protocol, add extra arguments to Infamy:
$ make INFAMY_EXTRA_ARGS="--transport=restconf" INFIX_TESTS=case/ietf_system/hostname.py test
or, when running interactively:
$ make test-sh
09:08:17 infamy0:test # ./9pm/9pm.py -o "--transport=restconf" case/ietf_system/hostname.py
[9PM]: https://github.com/rical/9pm
[Qeneth]: https://github.com/wkz/qeneth