nft-update-addresses: batch nft updates from all interfaces

main
Felix Stupp 1 month ago
parent 2f19d11aff
commit 341cb83aed
Signed by: zocker
GPG Key ID: 93E1BD26F6B02FB7

@ -850,7 +850,11 @@ def service_execution(args: argparse.Namespace, config: AppConfig) -> NoReturn:
update_cmd=shlex.split(args.nft_command), update_cmd=shlex.split(args.nft_command),
handler=SystemdHandler(), handler=SystemdHandler(),
) )
if_updater = _gen_if_updater(config.interfaces, nft_updater) nft_burst_handler = UpdateBurstHandler[NftUpdate](
burst_interval=0.1,
handler=(nft_updater,),
)
if_updater = _gen_if_updater(config.interfaces, nft_burst_handler)
burst_handler = UpdateBurstHandler[IpAddressUpdate]( burst_handler = UpdateBurstHandler[IpAddressUpdate](
burst_interval=0.5, burst_interval=0.5,
handler=if_updater, handler=if_updater,

Loading…
Cancel
Save