diff options
author | Christian Pointner <equinox@spreadspace.org> | 2020-08-23 01:56:46 +0200 |
---|---|---|
committer | Christian Pointner <equinox@spreadspace.org> | 2020-08-23 01:56:46 +0200 |
commit | d9687ede9928eb8ec6a7b3ff238f7b9fd319a670 (patch) | |
tree | dff7fc3f50378e75c48f95424679363dfaf56d06 /roles/vm/host/network/templates/interfaces/simple.j2 | |
parent | finalize chaos-at-home/fileserver (diff) |
revamp installer playbooks and add ch-apps vm
Diffstat (limited to 'roles/vm/host/network/templates/interfaces/simple.j2')
-rw-r--r-- | roles/vm/host/network/templates/interfaces/simple.j2 | 4 |
1 files changed, 2 insertions, 2 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 %} |