Author: carlos@lacnic.net AT Panama, 20191006
Find all RIR assignments that are currently NOT visible in the routing table.
El pipeline consta de 4 pasos y sería así:
STEP 0: generar el netdata.db (esto tiene su propio pipeline)
script: s0_get_netdatadb
salida: netdata-latest.db
STEP 1: tag assignments as visible / not visible
script: s1_tag_resources
salida: s1_tag_resources.csv
formato: Prefix|VisibleOrNot
STEP 2: agregarle a cada línea el org-id:
script: s2_enrich_with_orgid
salida: s2_enrich_with_orgid.csv
format: Prefix|VisibleOrNot|org-id
agrupar listado por org ids y generar un segundo listado por org ids con número de anuncios invalidados
script: s3_group_by_orgid
-
Compilar la imagen de docker:
make build
-
Ejecutar los pasos de la pipeline:
docker run -v $(pwd)/var:/var -v $(pwd):/opt/bin notvisible \ python3 /opt/bin/s1p_allocs_visible.py --date 20210801 --limit 9999
docker run -v $(pwd)/var:/var -v $(pwd):/opt/bin notvisible \ python3 /opt/bin/s1_alloc_and_routes.py --date 20210801 --limit 99999
docker run -v $(pwd)/var:/var -v $(pwd):/opt/bin notvisible \ python3 /opt/bin/s2_aggregate_results.py --date 20210801
-
Visualizar los datos
Los productos de este pipeline son:
*TBW
Están disponibles en:
*TBA
SQL útiles:
select orgid1,count(orgid1) as cnt from invalids group by orgid1 order by cnt asc;
select orgid0,count(orgid0) as count, name,email1,email2 from invalids,registrados where orgid0=orgid group by orgid0 order by count asc;
select orgid0,count,name,email1,email2 from (
select orgid0,count(orgid0) as count
from invalids group by orgid0 order by count asc),
registrados
where orgid0=orgid group by orgid0 order by count asc;