Watch
0
0
Fork
You've already forked hyperhive
0

egress-pin: say a vb- veth on the bridge that has no link_index

parse_ports drops a bridge port whose listing has no numeric link_index
without a line, and the unenslaved check cannot see it because it is on
the bridge. A sweep now names such a veth after the usual 60 s grace,
keyed by its ifindex so a restart is a new finding. Diagnostics only: no
binding changes.

Refs #6646
This commit is contained in:
maia 2026-11-23 10:29:37 +01:00
commit 9237948c2c

View file

@ -1026,18 +1026,25 @@ fn report(resolution: &Resolution, which: Report<'_>) {
/// nothing, and a failure here is a warning: the pass has already bound what it
/// could.
fn diagnose(bridge: &str, survey: &Survey) {
let unenslaved = output_of("ip", &["-j", "link", "show", "type", "veth"])
.and_then(|json| egress_diag::parse_unenslaved(&json, bridge))
let listing = output_of("ip", &["-j", "link", "show", "type", "veth"]);
let unenslaved = listing
.as_ref()
.map_err(|e| anyhow::anyhow!("{e:#}"))
.and_then(|json| egress_diag::parse_unenslaved(json, bridge))
.unwrap_or_else(|e| {
eprintln!("{PIN}: list the veths: {e:#}");
Vec::new()
});
let peerless = listing
.and_then(|json| egress_diag::parse_peerless(&json, bridge))
.unwrap_or_default();
let findings = egress_diag::findings(&egress_diag::Pass {
bridge,
ports: &survey.ports,
unbound: &survey.resolution.unbound,
machines: &survey.machines,
unenslaved: &unenslaved,
peerless: &peerless,
});
egress_diag::say(&findings, &format!("{}.diag", state_path()), now_secs());
}