mirror of
https://github.com/gaoyifan/china-operator-ip.git
synced 2025-07-13 12:52:36 +08:00
IPv4 data source rrc00 (address #33)
This commit is contained in:
parent
d7854f1ac3
commit
a57f02534c
3
.github/workflows/build.yml
vendored
3
.github/workflows/build.yml
vendored
@ -19,10 +19,11 @@ jobs:
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- uses: dtolnay/rust-toolchain@stable
|
||||
- uses: cargo-bins/cargo-binstall@main
|
||||
- uses: actions/setup-go@v2
|
||||
with:
|
||||
go-version: 1.16
|
||||
- run: sudo apt-get install -y lftp bgpdump tree
|
||||
- run: sudo apt-get install -y lftp bgpdump tree jq
|
||||
- uses: actions/cache@v3
|
||||
with:
|
||||
key: ${{ runner.os }}-build-dependencies
|
||||
|
@ -20,10 +20,10 @@ get_asn(){
|
||||
}
|
||||
|
||||
prepare_data_v4(){
|
||||
curl -sSLo rib.bz2 http://archive.routeviews.org/dnszones/rib.bz2
|
||||
stat rib.bz2
|
||||
bgpkit-broker latest -c rrc00 --json | jq -c '.[] | select( .data_type | contains("rib")) | .url' | head -n 1 | xargs curl -sSL -o rib.gz
|
||||
stat rib.gz
|
||||
log_info "runing bgpdump v4 ..."
|
||||
bgpdump -m -O rib.txt rib.bz2
|
||||
bgpdump -m -O rib.txt rib.gz
|
||||
stat rib.txt
|
||||
log_info "finish bgpdump v4"
|
||||
}
|
||||
|
@ -8,5 +8,13 @@ cidr-merger --version || \
|
||||
bgptools --version | grep -F $BGPTOOLS_VERSION || \
|
||||
cargo install --version $BGPTOOLS_VERSION bgptools
|
||||
|
||||
bgpkit-parser --version || \
|
||||
cargo binstall --secure --no-confirm bgpkit-parser@0.10.6
|
||||
|
||||
bgpkit-broker --version || \
|
||||
cargo binstall --secure --no-confirm bgpkit-broker@0.7.0-beta.5
|
||||
|
||||
cidr-merger --version
|
||||
bgptools --version
|
||||
bgpkit-parser --version
|
||||
bgpkit-broker --version
|
||||
|
Loading…
Reference in New Issue
Block a user