mirror of
				https://github.com/community-scripts/ProxmoxVE.git
				synced 2025-11-04 02:12:49 +00:00 
			
		
		
		
	Fix Bridge detection (#4495)
This commit is contained in:
		
				
					committed by
					
						
						GitHub
					
				
			
			
				
	
			
			
			
						parent
						
							35c99ae503
						
					
				
				
					commit
					4b31957617
				
			@@ -545,7 +545,7 @@ advanced_settings() {
 | 
				
			|||||||
        start=$(echo "${pair}" | cut -d':' -f1)
 | 
					        start=$(echo "${pair}" | cut -d':' -f1)
 | 
				
			||||||
        end=$(echo "${pair}" | cut -d':' -f2)
 | 
					        end=$(echo "${pair}" | cut -d':' -f2)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        if awk "NR >= ${start} && NR <= ${end}" "${iface_filepath}" | grep -qP '^\s*bridge[-_](ports|stp|fd|vlan-aware|vids)\s+'; then
 | 
					        if awk "NR >= ${start} && NR <= ${end}" "${iface_filepath}" | grep -qP '^\s*(bridge[-_](ports|stp|fd|vlan-aware|vids)|ovs_type\s+OVSBridge)\b'; then
 | 
				
			||||||
          iface_name=$(sed "${start}q;d" "${iface_filepath}" | awk '{print $2}')
 | 
					          iface_name=$(sed "${start}q;d" "${iface_filepath}" | awk '{print $2}')
 | 
				
			||||||
          BRIDGES="${iface_name}"$'\n'"${BRIDGES}"
 | 
					          BRIDGES="${iface_name}"$'\n'"${BRIDGES}"
 | 
				
			||||||
        fi
 | 
					        fi
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user