mirror of
https://gitlab.nic.cz/labs/bird.git
synced 2024-11-09 20:58:44 +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())
|