mirror of
https://gitlab.nic.cz/labs/bird.git
synced 2024-12-23 02:01:55 +00:00
Python CLI Package: test script writing out channel stats
This commit is contained in:
parent
3eae4a4eb6
commit
1fa3226b0b
@ -12,4 +12,9 @@ async def main():
|
|||||||
await b.protocols.update()
|
await b.protocols.update()
|
||||||
print(b.protocols)
|
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())
|
asyncio.run(main())
|
||||||
|
Loading…
Reference in New Issue
Block a user