mirror of
				https://github.com/iiab/iiab.git
				synced 2025-03-09 15:40:17 +00:00 
			
		
		
		
	sysd-netd-debian - multi wired slaves
This commit is contained in:
		
							parent
							
								
									1693e502ba
								
							
						
					
					
						commit
						3d5428b0a5
					
				
					 2 changed files with 11 additions and 4 deletions
				
			
		| 
						 | 
					@ -11,11 +11,14 @@
 | 
				
			||||||
    src: network/systemd-br0-network.j2
 | 
					    src: network/systemd-br0-network.j2
 | 
				
			||||||
  when: iiab_lan_iface == "br0"
 | 
					  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:
 | 
					  template:
 | 
				
			||||||
    dest: /etc/systemd/network/IIAB-Slave.network
 | 
					 | 
				
			||||||
    src: network/systemd-br0-slave.j2
 | 
					    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
 | 
					- name: Remove static WAN template
 | 
				
			||||||
  file:
 | 
					  file:
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -1,5 +1,9 @@
 | 
				
			||||||
# /etc/systemd/network/IIAB-Slave.network
 | 
					# /etc/systemd/network/IIAB-Slave-{{ iiab_wired_lan_iface }}.network
 | 
				
			||||||
[Match]
 | 
					[Match]
 | 
				
			||||||
Name={{ iiab_wired_lan_iface }}
 | 
					Name={{ iiab_wired_lan_iface }}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					[Link]
 | 
				
			||||||
 | 
					RequiredForOnline=no
 | 
				
			||||||
 | 
					
 | 
				
			||||||
[Network]
 | 
					[Network]
 | 
				
			||||||
Bridge=br0
 | 
					Bridge=br0
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue