nft-update-addresses: add ULAs to addr sets

main
Felix Stupp 1 month ago
parent 376e54e564
commit 11626ede34
Signed by: zocker
GPG Key ID: 93E1BD26F6B02FB7

@ -388,8 +388,6 @@ class InterfaceUpdateHandler(UpdateStackHandler[IpAddressUpdate]):
operation=op, operation=op,
values=(data.ip.network.compressed,), values=(data.ip.network.compressed,),
) )
if data.ip in IPv6_ULA_NET:
return
yield NftUpdate( yield NftUpdate(
obj_type="set", obj_type="set",
obj_name=f"all_ipv{data.ip.version}addr", obj_name=f"all_ipv{data.ip.version}addr",
@ -402,6 +400,9 @@ class InterfaceUpdateHandler(UpdateStackHandler[IpAddressUpdate]):
operation=op, operation=op,
values=(data.ip.ip.compressed,), values=(data.ip.ip.compressed,),
) )
# ignore unique link locals for prefix-dependent destinations
if data.ip in IPv6_ULA_NET:
return
if data.ip.version != 6: if data.ip.version != 6:
return return
slaacs = {mac: slaac_eui48(data.ip.network, mac) for mac in self.config.macs} slaacs = {mac: slaac_eui48(data.ip.network, mac) for mac in self.config.macs}

Loading…
Cancel
Save