works enough for now

This commit is contained in:
Benjamin Tayehanpour 2026-06-16 22:47:04 +02:00
commit c04a9a752a
12 changed files with 178 additions and 0 deletions

7
compiler/render.py Normal file
View file

@ -0,0 +1,7 @@
from jinja2 import Environment, FileSystemLoader
env = Environment(loader=FileSystemLoader("templates"))
def render_nat(rules):
tmpl = env.get_template("vyos_nat.j2")
return(tmpl.render(rules=rules))