Build cidr-merger from source

This commit is contained in:
Yifan Gao
2020-01-01 20:03:19 +08:00
parent aa872f3f48
commit 594bb43ac2
3 changed files with 24 additions and 7 deletions

View File

@@ -12,8 +12,8 @@ for file in operator/*.conf; do
operator=${operator##*/}
log_info "generating IP list of $operator ..."
get_asn $file
get_asn $file | xargs bgptools -b rib.txt | sort | uniq | docker run -i --rm yangzhaofengsteven/cidr-merge > result/${operator}.txt &
get_asn $file | xargs bgptools -b rib6.txt | sort | uniq | docker run -i --rm yangzhaofengsteven/cidr-merge > result/${operator}6.txt &
get_asn $file | xargs bgptools -b rib.txt | cidr-merger > result/${operator}.txt &
get_asn $file | xargs bgptools -b rib6.txt | cidr-merger > result/${operator}6.txt &
done
wait