0
0
mirror of https://gitlab.nic.cz/labs/bird.git synced 2024-11-08 12:18:42 +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())