Initial commit, squashed
This commit is contained in:
		
						commit
						158e8740b8
					
				
					 83 changed files with 2718 additions and 0 deletions
				
			
		
							
								
								
									
										11
									
								
								roles/fabric/templates/ports.conf.j2
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										11
									
								
								roles/fabric/templates/ports.conf.j2
									
										
									
									
									
										Normal file
									
								
							| 
						 | 
				
			
			@ -0,0 +1,11 @@
 | 
			
		|||
# https://docs.nvidia.com/networking-ethernet-software/cumulus-linux/Layer-1-and-Switch-Ports/Interface-Configuration-and-Management/Switch-Port-Attributes/#breakout-ports
 | 
			
		||||
{% for interface in interfaces | selectattr('name', 'match', '^swp[0-9]+$') %}
 | 
			
		||||
{{ interface.name|regex_replace('^swp', '') }}=
 | 
			
		||||
{%- if interfaces|selectattr('name', 'match', '^'+interface.name+'s[0-9]+$') %}
 | 
			
		||||
4x
 | 
			
		||||
{% elif not interface.enabled %}
 | 
			
		||||
disabled
 | 
			
		||||
{% else %}
 | 
			
		||||
1x
 | 
			
		||||
{% endif %}
 | 
			
		||||
{% endfor %}
 | 
			
		||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue