0
0
mirror of https://gitlab.nic.cz/labs/bird.git synced 2024-12-22 17:51:53 +00:00

Python CLI Package: test script writing out channel stats

This commit is contained in:
Maria Matejka 2023-05-20 15:25:35 +02:00
parent 3eae4a4eb6
commit 1fa3226b0b

View File

@ -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())