exit: sort prefixes by family values
Because I made some seemingly unrelated changes in NetBox and they all got flipped‐turned upside down.
This commit is contained in:
		
							parent
							
								
									000f625988
								
							
						
					
					
						commit
						ece3b8a377
					
				
					 2 changed files with 3 additions and 2 deletions
				
			
		| 
						 | 
				
			
			@ -216,7 +216,8 @@ ip prefix-list fabric permit 10.34.0.0/24 ge 32
 | 
			
		|||
ipv6 prefix-list fabric permit 2001:1470:fffd:3400::/64 ge 128
 | 
			
		||||
 | 
			
		||||
{% for vlan in inside_vlans %}
 | 
			
		||||
{% set prefixes = query('netbox.netbox.nb_lookup', 'prefixes', api_filter='vlan_id='~vlan.id, raw_data=true) %}
 | 
			
		||||
{% set prefixes = query('netbox.netbox.nb_lookup', 'prefixes', api_filter='vlan_id='~vlan.id, raw_data=true)
 | 
			
		||||
        | sort(attribute='family.value') %}
 | 
			
		||||
{% for prefix in prefixes %}
 | 
			
		||||
{% if prefix.family.value == 4 %}
 | 
			
		||||
ip prefix-list office permit {{ prefix.prefix }} ge 24
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue