pub fn report(
config: Option<&MeshConfig>,
local: &[Ipv4Addr],
server_port: Option<u16>,
) -> FirewallReportExpand description
Build the report for this host from the declaration, the addresses and the server’s port, asking the firewall and the kernel log — and asking neither when the plan is empty, because nothing is needed.
use majordomus_cli::mesh::firewall::{report, FirewallObservationState};
let r = report(None, &[], None);
assert_eq!(r.observation.state, FirewallObservationState::Present);
assert!(r.blocked_recently.is_none());
assert!(r.verdict.contains("needs no inbound admission"));