mirror of
https://github.com/gaoyifan/china-operator-ip.git
synced 2025-07-13 21:02:37 +08:00
debug
This commit is contained in:
parent
697c7a50c8
commit
052651ab37
2
.github/workflows/build.yml
vendored
2
.github/workflows/build.yml
vendored
@ -23,7 +23,7 @@ jobs:
|
|||||||
- uses: actions/setup-go@v2
|
- uses: actions/setup-go@v2
|
||||||
with:
|
with:
|
||||||
go-version: 1.16
|
go-version: 1.16
|
||||||
- run: sudo apt-get install -y lftp bgpdump tree jq
|
- run: sudo apt-get install -y lftp bgpdump tree jq axel
|
||||||
- uses: actions/cache@v3
|
- uses: actions/cache@v3
|
||||||
with:
|
with:
|
||||||
key: ${{ runner.os }}-build-dependencies
|
key: ${{ runner.os }}-build-dependencies
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
[[ $DEBUG == true ]] && set -x
|
set -x
|
||||||
|
|
||||||
log_info(){
|
log_info(){
|
||||||
>&2 echo "INFO>" $@
|
>&2 echo "INFO>" $@
|
||||||
@ -20,7 +20,7 @@ get_asn(){
|
|||||||
}
|
}
|
||||||
|
|
||||||
prepare_data_v4(){
|
prepare_data_v4(){
|
||||||
bgpkit-broker latest -c rrc00 --json | jq -c '.[] | select( .data_type | contains("rib")) | .url' | head -n 1 | xargs curl -sSL -o rib.gz
|
bgpkit-broker latest -c rrc00 --json | jq -c '.[] | select( .data_type | contains("rib")) | .url' | head -n 1 | xargs axel -o rib.gz
|
||||||
stat rib.gz
|
stat rib.gz
|
||||||
log_info "runing bgpdump v4 ..."
|
log_info "runing bgpdump v4 ..."
|
||||||
bgpdump -m -O rib.txt rib.gz
|
bgpdump -m -O rib.txt rib.gz
|
||||||
@ -28,7 +28,7 @@ prepare_data_v4(){
|
|||||||
log_info "finish bgpdump v4"
|
log_info "finish bgpdump v4"
|
||||||
}
|
}
|
||||||
prepare_data_v6(){
|
prepare_data_v6(){
|
||||||
bgpkit-broker latest -c route-views6 --json | jq -c '.[] | select( .data_type | contains("rib")) | .url' | head -n 1 | xargs curl -sSL -o rib6.bz2
|
bgpkit-broker latest -c route-views6 --json | jq -c '.[] | select( .data_type | contains("rib")) | .url' | head -n 1 | xargs axel -q -o rib6.bz2
|
||||||
stat rib6.bz2
|
stat rib6.bz2
|
||||||
log_info "runing bgpdump v6 ..."
|
log_info "runing bgpdump v6 ..."
|
||||||
bgpdump -m -O rib6.txt rib6.bz2
|
bgpdump -m -O rib6.txt rib6.bz2
|
||||||
|
Loading…
Reference in New Issue
Block a user