0
0
mirror of https://gitlab.nic.cz/labs/bird.git synced 2024-12-23 02:01:55 +00:00
bird/python/test.py
Maria Matejka 04f96b6705 Python CLI Package: Protocol scaffolding for Kernel, Device, Direct, Babel and RAdv
This choice comes from my own local setup where I use exactly these protocols.
Other protocols will be added later.
2023-05-23 13:44:48 +02:00

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