From 11c5674b208801d816591e5a3b54a05693141c49 Mon Sep 17 00:00:00 2001 From: Pavel 'LEdoian' Turinsky Date: Mon, 25 Apr 2022 02:33:11 +0200 Subject: [PATCH] Fix bridge templates The context variable `bridges` is a dictionary, not a list. --- templates/bridge.conf | 2 +- templates/gen_bridges.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/templates/bridge.conf b/templates/bridge.conf index f48e26b..a6cfb3a 100644 --- a/templates/bridge.conf +++ b/templates/bridge.conf @@ -1,3 +1,3 @@ -{% for b in bridges %} +{% for b in bridges.values() %} allow {{ b.name }} {% endfor %} diff --git a/templates/gen_bridges.sh b/templates/gen_bridges.sh index ff5c0d1..7033948 100644 --- a/templates/gen_bridges.sh +++ b/templates/gen_bridges.sh @@ -2,7 +2,7 @@ # Run as root. -{% for b in bridges %} +{% for b in bridges.values() %} ip link add name {{ b.name }} type bridge ip link set {{ b.name }} up {% endfor %}