exit, firewall: don’t hardcode prefix length
This commit is contained in:
		
							parent
							
								
									2327b42412
								
							
						
					
					
						commit
						bb41d406f8
					
				
					 2 changed files with 4 additions and 4 deletions
				
			
		| 
						 | 
				
			
			@ -217,9 +217,9 @@ ipv6 prefix-list fabric permit 2001:1470:fffd:3400::/64 ge 128
 | 
			
		|||
    | selectattr('vrf.id', 'in', inside_vrfs|map(attribute='id'))
 | 
			
		||||
    | sort(attribute='family.value') | sort(attribute='vlan.vid') %}
 | 
			
		||||
{% if prefix.family.value == 4 %}
 | 
			
		||||
ip prefix-list office permit {{ prefix.prefix }} ge 24
 | 
			
		||||
ip prefix-list office permit {{ prefix.prefix }} ge {{ prefix.prefix | ipaddr('prefix') }}
 | 
			
		||||
{% else %}
 | 
			
		||||
ipv6 prefix-list office permit {{ prefix.prefix }} ge 64
 | 
			
		||||
ipv6 prefix-list office permit {{ prefix.prefix }} ge {{ prefix.prefix | ipaddr('prefix') }}
 | 
			
		||||
{% endif %}
 | 
			
		||||
{% endfor %}
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue