mirror of
https://gitlab.nic.cz/labs/bird.git
synced 2024-12-23 02:01:55 +00:00
04f96b6705
This choice comes from my own local setup where I use exactly these protocols. Other protocols will be added later.
16 lines
303 B
Python
16 lines
303 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)
|
|
|
|
await b.protocols.update()
|
|
print(b.protocols)
|
|
|
|
asyncio.run(main())
|