1
0
Fork 0
mirror of https://github.com/iiab/iiab.git synced 2025-02-13 11:42:08 +00:00

sysd-netd-debian - multi wired slaves

This commit is contained in:
Jerry Vonau 2020-04-04 05:09:03 -05:00
parent 1693e502ba
commit 3d5428b0a5
2 changed files with 11 additions and 4 deletions

View file

@ -11,11 +11,14 @@
src: network/systemd-br0-network.j2
when: iiab_lan_iface == "br0"
- name: Copy the bridge script - Assigns br0 wired slaves
# can be more than one wired interface
- name: Wired enslaving - Assigns lan_list_results to br0 as wired slaves if present
template:
dest: /etc/systemd/network/IIAB-Slave.network
src: network/systemd-br0-slave.j2
when: iiab_wired_lan_iface is defined and iiab_lan_iface == "br0"
dest: /etc/systemd/network/IIAB-Slave-{{ item|trim }}.network
with_items:
- "{{ lan_list_result.stdout_lines }}"
when: iiab_wired_lan_iface is defined and num_lan_interfaces >= 2
- name: Remove static WAN template
file:

View file

@ -1,5 +1,9 @@
# /etc/systemd/network/IIAB-Slave.network
# /etc/systemd/network/IIAB-Slave-{{ iiab_wired_lan_iface }}.network
[Match]
Name={{ iiab_wired_lan_iface }}
[Link]
RequiredForOnline=no
[Network]
Bridge=br0