From 893623dfbccc29268bbeb642083427de62396bc0 Mon Sep 17 00:00:00 2001 From: Samuel Ortiz Date: Wed, 29 Sep 2021 10:45:04 +0200 Subject: [PATCH] runtime: Pass the route IP family to the agent When updating the guest routing table, we should forward the IP family information up to the guest. Signed-off-by: Samuel Ortiz (cherry picked from commit 71ce6cfe9ee88648bd22f448afd4b340eb5e21d8) --- src/runtime/virtcontainers/network.go | 1 + 1 file changed, 1 insertion(+) diff --git a/src/runtime/virtcontainers/network.go b/src/runtime/virtcontainers/network.go index f37f22649..e28843983 100644 --- a/src/runtime/virtcontainers/network.go +++ b/src/runtime/virtcontainers/network.go @@ -1048,6 +1048,7 @@ func generateVCNetworkStructures(ctx context.Context, networkNS NetworkNamespace r.Device = endpoint.Name() r.Scope = uint32(route.Scope) + r.Family = utils.ConvertNetlinkFamily((int32)(route.Family)) routes = append(routes, &r) }