]> git.puffer.fish Git - matthieu/frr.git/commit
tests: improve the grpc query client and topotest
authorChristian Hopps <chopps@labn.net>
Wed, 15 May 2024 03:36:38 +0000 (23:36 -0400)
committerChristian Hopps <chopps@labn.net>
Wed, 15 May 2024 04:16:33 +0000 (00:16 -0400)
commit9dc02dd338946887b04e9c79216ed5bc95ddaf1f
treeda3a909cccc73127c36d59edfa6d8b58775a799d
parent93b68f612853d3c920de44f240d268889c35eea2
tests: improve the grpc query client and topotest

- Add separate get, get-config, get-state operations to query command, as
well as switching default output to JSON.
- Add an `--xml` to change the output format.
- move printss to logging.debug so output is a machine parseable result.

Signed-off-by: Christian Hopps <chopps@labn.net>
tests/topotests/grpc_basic/test_basic_grpc.py
tests/topotests/lib/grpc-query.py