mirror of
https://gitlab.nic.cz/labs/bird.git
synced 2025-01-03 15:41:54 +00:00
13 lines
240 B
Python
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())
|