hive-priv: egress-pin and egress-lease sub-commands that bind bridge ports to MACs and load leases
This commit is contained in:
parent
36c7781245
commit
c3f1ef6eb2
1 changed files with 824 additions and 2 deletions
|
|
@ -22,7 +22,8 @@
|
|||
//! systemd drop-ins), [`rootfs`] (the salvage of a container's root before it
|
||||
//! turns ephemeral, with [`salvage_io`] for its space, reflink and lock calls),
|
||||
//! [`prestart`] (the check of a container's root that runs before each start,
|
||||
//! as a sub-command), [`storage`] (btrfs subvolumes, quotas, snapshots, disk
|
||||
//! as a sub-command), [`egress`] (the bridge anti-spoofing bindings, also
|
||||
//! sub-commands), [`storage`] (btrfs subvolumes, quotas, snapshots, disk
|
||||
//! measurement), [`files`] (pause marker, socket dir, legacy tmpfiles),
|
||||
//! [`infra`] (gateway nginx, infra containers) and [`closure`] (the swarm-signature
|
||||
//! check before an apply, and the cache-facts refresh). Helpers more than one family uses are in [`shared`].
|
||||
|
|
@ -30,6 +31,7 @@
|
|||
mod closure;
|
||||
mod container;
|
||||
mod container_config;
|
||||
mod egress;
|
||||
mod files;
|
||||
mod infra;
|
||||
mod prestart;
|
||||
|
|
@ -53,6 +55,11 @@ async fn main() -> Result<()> {
|
|||
if let Some(code) = prestart::run(&args) {
|
||||
std::process::exit(code);
|
||||
}
|
||||
// `egress-pin` and `egress-lease` are run by the hive-egress unit, its udev
|
||||
// trigger and dnsmasq: sub-commands like the one above, not requests.
|
||||
if let Some(code) = egress::run(&args) {
|
||||
std::process::exit(code);
|
||||
}
|
||||
|
||||
tracing_subscriber::fmt()
|
||||
.with_env_filter(
|
||||
|
|
|
|||
Loading…
Reference in a new issue