Initial commit, squashed
This commit is contained in:
		
						commit
						158e8740b8
					
				
					 83 changed files with 2718 additions and 0 deletions
				
			
		
							
								
								
									
										17
									
								
								roles/fabric/templates/peerlink.intf.j2
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										17
									
								
								roles/fabric/templates/peerlink.intf.j2
									
										
									
									
									
										Normal file
									
								
							| 
						 | 
				
			
			@ -0,0 +1,17 @@
 | 
			
		|||
{% set peer_ip = hostvars[peer].interfaces
 | 
			
		||||
    | selectattr('name', '==', 'lo')
 | 
			
		||||
    | map(attribute='ip_addresses') | first
 | 
			
		||||
    | selectattr('role') | selectattr('role.value', '==', 'loopback')
 | 
			
		||||
    | map(attribute='address') | ipv4 | first | ipaddr('address') %}
 | 
			
		||||
{% set anycast_ip = interfaces
 | 
			
		||||
    | selectattr('name', '==', 'lo')
 | 
			
		||||
    | map(attribute='ip_addresses') | first
 | 
			
		||||
    | selectattr('role') | selectattr('role.value', '==', 'anycast')
 | 
			
		||||
    | map(attribute='address') | ipv4 | first | ipaddr('address') -%}
 | 
			
		||||
 | 
			
		||||
# Peer link to the other switch.
 | 
			
		||||
auto peerlink.4094
 | 
			
		||||
iface peerlink.4094
 | 
			
		||||
    clagd-peer-ip linklocal
 | 
			
		||||
    clagd-backup-ip {{ peer_ip }}
 | 
			
		||||
    clagd-sys-mac {{ anycast_ip | cl_clag_sys_mac }}
 | 
			
		||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue