0
0
mirror of https://gitlab.nic.cz/labs/bird.git synced 2024-11-09 20:58:44 +00:00
bird/python/test.py

13 lines
240 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)
asyncio.run(main())