0
0
mirror of https://gitlab.nic.cz/labs/bird.git synced 2025-01-03 15:41:54 +00:00
bird/python/test.py
2023-05-23 13:44:47 +02:00

13 lines
240 B
Python

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