From: Maria Matejka Date: Sat, 20 May 2023 13:25:35 +0000 (+0200) Subject: Python CLI Package: test script writing out channel stats X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1fa3226b0b5c5ba1295e47424e68da84ff9282aa;p=thirdparty%2Fbird.git Python CLI Package: test script writing out channel stats --- diff --git a/python/test.py b/python/test.py index ede00810e..67252d5f1 100644 --- a/python/test.py +++ b/python/test.py @@ -12,4 +12,9 @@ async def main(): await b.protocols.update() print(b.protocols) + for name, protocol in b.protocols.data.items(): + print(f"{name}: {protocol.channels}") + for name, channel in protocol.channels.items(): + print(f" {name}: {channel.route_change_stats}") + asyncio.run(main())