accepting up to /56 on ipv6 and bugfixing for wit-gc

This commit is contained in:
toby 2019-03-11 18:59:24 +00:00
parent 2e9317222e
commit 73ae7b9680
2 changed files with 7 additions and 5 deletions

View File

@ -296,7 +296,7 @@ case "$1" in
i=1
while true; do
TEMP="$(dig_txt $i.ipv6.customers.prefixlist.$DOMAINNAME)" || break
TEMPSUM="ipv6 prefix-list WITv6-CUSTOMERS seq $((i*5)) permit ${TEMP} ge 64\n"
TEMPSUM="ipv6 prefix-list WITv6-CUSTOMERS seq $((i*5)) permit ${TEMP} ge 56\n"
FRR_IPV6_CUSTOMERS_PFLIST="${FRR_IPV6_CUSTOMERS_PFLIST}${TEMPSUM}"
let i+=1
done

View File

@ -15,13 +15,15 @@ done
for route in $(vtysh -c "show ip route kernel" | grep 'unknown inactive' | grep -Po 'K[ >]\* \K\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}\/\d{1,3}')
for route in $(vtysh -c "show ip route kernel" | grep 'unknown inactive' | sed 's|.* \([0-9]\{1,3\}\.[0-9]\{1,3\}\.[0-9]\{1,3\}\.[0-9]\{1,3\}\/[0-9]\{1,3\}\) \[.\/\([0-9]\{1,3\}\)\].*|\1-met-\2|')
do
echo "removing zombie route: $route"
ip route add blackhole $route
ip route del $route
echo "removing zombie route: ${route/-met-/ metric }"
ip route add blackhole ${route/-met-/ metric }
ip route del ${route/-met-/ metric }
done
#all this spiel is not needed for ipv6
#for route in $(vtysh -c "show ipv6 route kernel" | grep 'unknown inactive' | awk '{ print $3 }')
# do
# echo "removing zombie route: $route"