summaryrefslogtreecommitdiff
path: root/roles/install_wireguard_mesh/templates/down.sh.j2
blob: a1f8d52a78dd4b95f202faf2b6bd5ddac2eacf74 (plain)
1
2
3
4
5
6
7
8
#!/bin/bash
{% if item.wireguard_mesh_peers %}
{% for peer in item.wireguard_mesh_peers %}
batctl -m bat{{ item.name }} if del mesh{{ item.name }}{{ peer.number }}
ip link set down dev mesh{{ item.name }}{{ peer.number }}
ip link del mesh{{ item.name }}{{ peer.number }} type ip6gretap
{% endfor %}
{% endif %}