summaryrefslogtreecommitdiff
path: root/roles
diff options
context:
space:
mode:
Diffstat (limited to 'roles')
-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 %}