diff --git a/route_verification/bgp/src/report.rs b/route_verification/bgp/src/report.rs index 717a573..5276d24 100644 --- a/route_verification/bgp/src/report.rs +++ b/route_verification/bgp/src/report.rs @@ -122,7 +122,7 @@ pub enum ReportItem { UnrecImportEmpty, UnrecExportEmpty, - // Unrecorded. + // Unrecorded RPSL Objects. UnrecordedFilterSet(String), UnrecordedAsRoutes(u32), UnrecordedRouteSet(String), diff --git a/route_verification/src/evcxr_examples.rs b/route_verification/src/evcxr_examples.rs index c78a732..91295ad 100644 --- a/route_verification/src/evcxr_examples.rs +++ b/route_verification/src/evcxr_examples.rs @@ -31,12 +31,10 @@ before running Evcxr is also needed. :dep route_verification = { path = "route_verification" } :dep rayon :dep itertools -:dep polars = { features = ["describe"] } // */ use anyhow::Result; use dashmap::DashMap; use itertools::multiunzip; -use polars::prelude::*; use rayon::prelude::*; use route_verification::as_rel::*; use route_verification::bgp::stats::*; @@ -50,6 +48,12 @@ use std::{ time::Instant, }; +// If Polars is needed: +/* +:dep polars = { features = ["describe"] } +use polars::prelude::*; +*/ + fn read_parsed_rpsl() -> Result<()> { let start = Instant::now(); let parsed = Ir::pal_read("parsed_all")?; diff --git a/route_verification/src/evcxr_examples/route_stats.rs b/route_verification/src/evcxr_examples/route_stats.rs index 76fa4d2..be26b31 100644 --- a/route_verification/src/evcxr_examples/route_stats.rs +++ b/route_verification/src/evcxr_examples/route_stats.rs @@ -66,7 +66,8 @@ fn gen_route_stats(query: QueryIr, mut bgp_lines: Vec, db: AsRelDb) -> Res " .split_ascii_whitespace() .collect(); - file.write_all(header.as_bytes()); + file.write_all(header.trim_end_matches(",").as_bytes()); + file.write_all(b"\n"); let comma = b","[0]; for s in stats { let RouteStats {