network: implement proper IPv6 networking

This commit is contained in:
Alex Zenla
2024-02-11 07:29:37 +00:00
parent 6773640a39
commit 2c7879ad45
6 changed files with 51 additions and 12 deletions

View File

@ -350,7 +350,7 @@ impl ContainerInit {
.await?;
if ipv6_ready {
handle
let ipv6_gw_result = handle
.route()
.add()
.v6()
@ -358,7 +358,11 @@ impl ContainerInit {
.output_interface(link.header.index)
.gateway(ipv6_gateway)
.execute()
.await?;
.await;
if let Err(error) = ipv6_gw_result {
warn!("failed to add ipv6 gateway route: {}", error);
}
}
Ok(())