python library for generating bird configuration files
Hey, I wrote a tiny library to generate bird configurations with python classes. It has no external dependencies and the repository includes some examples. It's in no way perfect or complete and I don't plan to extend it. But maybe it can serve as a base for your own needs. Extending it to support more protocols and options should be fairly easy. My personal favorite feature is that you can mark any Protocol class instance as a bird template by passing the is_template=True parameter. This template can be reused by passing the name of the template (e.g. "my_template") to the from_template="my_template" parameter of another Protocol class instance. https://github.com/hw0lff/bird-config-py Have fun! Cheers -- Hendrik
Hello Hendrik. We appreciate your efforts. The code seems very useful to us. - Would you consider maintaining it? - Have you thought about making it a separate project or part of BIRD itself? We need to look at it in more detail first, but then we are open to integrating it into BIRD itself. What are your thoughts on this? Looking forward to your answer. Jana Jana Babovakova | BIRD Tech Support | CZ.NIC, z.s.p.o. On 15. 02. 25 13:20, Hendrik Wolff wrote:
Hey,
I wrote a tiny library to generate bird configurations with python classes. It has no external dependencies and the repository includes some examples. It's in no way perfect or complete and I don't plan to extend it. But maybe it can serve as a base for your own needs. Extending it to support more protocols and options should be fairly easy.
My personal favorite feature is that you can mark any Protocol class instance as a bird template by passing the is_template=True parameter. This template can be reused by passing the name of the template (e.g. "my_template") to the from_template="my_template" parameter of another Protocol class instance.
https://github.com/hw0lff/bird-config-py
Have fun!
Cheers
Hey Jana,
We appreciate your efforts. The code seems very useful to us.
Thank you ! :D
- Would you consider maintaining it?
Yeah, I can maintain this little script. It does not seem to be to much work. I would need to add a proper python setup to the repo with a pyproject.toml. And if someone needs another protocol they can open an issue or write me an e-mail.
- Have you thought about making it a separate project or part of BIRD itself?
I am not familiar with the bird development process and I'm not sure if integrating it would make sense. That's why I would propose to maintain it as a separate project at first, see how it goes and be open to integrating it into bird itself at a later date. What would incorporating this script into bird entail for me as the current maintainer? If it stays a separate project I should think of another name maybe? bird-config-py seems a bit bland… (I'm open to suggestions) Cheers, -- Hendrik
participants (2)
-
Hendrik Wolff -
Jana Babovakova