0
0
mirror of https://gitlab.nic.cz/labs/bird.git synced 2024-12-23 02:01:55 +00:00
bird/python/test.py

16 lines
303 B
Python
Raw Normal View History

2023-04-03 15:52:03 +00:00
import asyncio
from BIRD import BIRD
async def main():
async with BIRD("/run/bird/bird.ctl") as b:
await b.version.update()
print(b.version)
await b.status.update()
print(b.status)
await b.protocols.update()
print(b.protocols)
2023-04-03 15:52:03 +00:00
asyncio.run(main())