]> git.puffer.fish Git - matthieu/frr.git/commit
topotests: add API to detect if iproute2 is json capable
authorPhilippe Guibert <philippe.guibert@6wind.com>
Mon, 10 Jun 2024 06:38:22 +0000 (08:38 +0200)
committerPhilippe Guibert <philippe.guibert@6wind.com>
Tue, 11 Jun 2024 08:01:56 +0000 (10:01 +0200)
commita6b1d38d7f038c335143d963b7b7a13377ef5f22
treee109210d58f74c2d4187052a9b7b8c3b68ae7605
parent9fb7d677d3584eadd1d4568bedd542eb880afcd7
topotests: add API to detect if iproute2 is json capable

Some tests may want to use the json facility of iproute2 to
dump some results.
Add an internal API in lib/topotest.py that tells whether iproute2
is json capable or not.

Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com>
tests/topotests/lib/topotest.py