diff options
author | Niklas Yann Wettengel <niyawe@niyawe.de> | 2021-07-28 01:12:10 +0200 |
---|---|---|
committer | Niklas Yann Wettengel <niyawe@niyawe.de> | 2021-07-28 01:12:10 +0200 |
commit | 9ec1670a262597356c24bff27d473eccceb45b61 (patch) | |
tree | 8d94c1ab62fef270ea45a103be179609272b3f82 /roles/setup_batman | |
parent | f394fd81667a44e267e83d3c453101598a21c58c (diff) |
wg
Diffstat (limited to 'roles/setup_batman')
-rw-r--r-- | roles/setup_batman/templates/netctl_bat.j2 | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/roles/setup_batman/templates/netctl_bat.j2 b/roles/setup_batman/templates/netctl_bat.j2 index 5e11d74..1693775 100644 --- a/roles/setup_batman/templates/netctl_bat.j2 +++ b/roles/setup_batman/templates/netctl_bat.j2 @@ -1,8 +1,13 @@ Connection=ethernet Interface=bat{{ item.name }} +{% if item.net4 is defined %} IP=static IP6=static Address6=({{ item.bat_ipv6 }}/64) Address=({{ item.bat_ipv4 }}/{{ item.bat_ipv4_cidr }}) +{% else %} +IP=no +IP6=no +{% endif %} ExecUpPost=/usr/local/bin/ffmyk-iproute{{ item.name }}-up.sh ExecDownPre=/usr/local/bin/ffmyk-iproute{{ item.name }}-down.sh |