summaryrefslogtreecommitdiff
path: root/roles/vm/host
diff options
context:
space:
mode:
authorChristian Pointner <equinox@spreadspace.org>2020-08-23 01:56:46 +0200
committerChristian Pointner <equinox@spreadspace.org>2020-08-23 01:56:46 +0200
commitd9687ede9928eb8ec6a7b3ff238f7b9fd319a670 (patch)
treedff7fc3f50378e75c48f95424679363dfaf56d06 /roles/vm/host
parentfinalize chaos-at-home/fileserver (diff)
revamp installer playbooks and add ch-apps vm
Diffstat (limited to 'roles/vm/host')
-rw-r--r--roles/vm/host/network/templates/interfaces/simple.j24
-rw-r--r--roles/vm/host/network/templates/interfaces/simple6.j24
2 files changed, 4 insertions, 4 deletions
diff --git a/roles/vm/host/network/templates/interfaces/simple.j2 b/roles/vm/host/network/templates/interfaces/simple.j2
index c5b7dadc..8d1bb83e 100644
--- a/roles/vm/host/network/templates/interfaces/simple.j2
+++ b/roles/vm/host/network/templates/interfaces/simple.j2
@@ -4,8 +4,8 @@
gateway {{ interface.gateway }}
{% endif %}
{% for route in interface.static_routes | default([]) %}
- up /bin/ip route add {{ route.destination }} via {{ route.gateway }}{% if 'source' in route %} src {{ route.source }}{% endif %}
+ up /bin/ip route add {{ route.destination }} via {{ route.gateway }}{% if 'source' in route %} src {{ route.source }}{% endif %}{{ '' }}
{% endfor %}
{% for route in interface.static_routes | default([]) | reverse %}
- down /bin/ip route del {{ route.destination }} via {{ route.gateway }}{% if 'source' in route %} src {{ route.source }}{% endif %}
+ down /bin/ip route del {{ route.destination }} via {{ route.gateway }}{% if 'source' in route %} src {{ route.source }}{% endif %}{{ '' }}
{% endfor %}
diff --git a/roles/vm/host/network/templates/interfaces/simple6.j2 b/roles/vm/host/network/templates/interfaces/simple6.j2
index 37fda07a..aa10070a 100644
--- a/roles/vm/host/network/templates/interfaces/simple6.j2
+++ b/roles/vm/host/network/templates/interfaces/simple6.j2
@@ -3,8 +3,8 @@
gateway {{ interface.gateway6 }}
{% endif %}
{% for route in interface.static_routes6 | default([]) %}
- up /bin/ip -6 route add {{ route.destination }} via {{ route.gateway }}{% if 'source' in route %} src {{ route.source }}{% endif %}
+ up /bin/ip -6 route add {{ route.destination }} via {{ route.gateway }}{% if 'source' in route %} src {{ route.source }}{% endif %}{{ '' }}
{% endfor %}
{% for route in interface.static_routes6 | default([]) | reverse %}
- down /bin/ip -6 route del {{ route.destination }} via {{ route.gateway }}{% if 'source' in route %} src {{ route.source }}{% endif %}
+ down /bin/ip -6 route del {{ route.destination }} via {{ route.gateway }}{% if 'source' in route %} src {{ route.source }}{% endif %}{{ '' }}
{% endfor %}