summaryrefslogtreecommitdiff
path: root/roles/router
diff options
context:
space:
mode:
authoruvok cheetah2023-08-21 18:17:09 +0200
committeruvok cheetah2023-08-21 18:17:09 +0200
commit6f07852460cf475c37dd5b2cc94857d2e9e05070 (patch)
tree0707f75d40e24dde7884f4871843228775d9891b /roles/router
parent44bd2d5476d7b462a1b58dd2dd805ca761ee21a6 (diff)
tinc: Add extra commands
Diffstat (limited to 'roles/router')
-rwxr-xr-xroles/router/templates/tinc-up.j25
1 files changed, 5 insertions, 0 deletions
diff --git a/roles/router/templates/tinc-up.j2 b/roles/router/templates/tinc-up.j2
index 93ab205..8c26aa9 100755
--- a/roles/router/templates/tinc-up.j2
+++ b/roles/router/templates/tinc-up.j2
@@ -2,3 +2,8 @@
ip link set $INTERFACE up
ip -6 addr flush dev $INTERFACE
ip addr add {{ tinc.address }} dev $INTERFACE
+{% if tinc.extra_up is defined %}
+{% for cmd in tinc.extra_up %}
+{{ cmd }}
+{% endfor %}
+{% endif %}