From b6e6924a75cfca7ff46df83d1a4b5b9e6205c6bb Mon Sep 17 00:00:00 2001 From: Archana Shinde Date: Wed, 14 Mar 2018 10:03:52 -0700 Subject: [PATCH] hyperstart_agent: ipv6: Skip ipv6 gateway for hyperstart agent We ignore routes that have an ipv6 destination, since hyperstart agent does not have support for ipv6 currently. We should do the same for default route that has an ipv6 gateway address. Signed-off-by: Archana Shinde --- virtcontainers/hyperstart_agent.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/virtcontainers/hyperstart_agent.go b/virtcontainers/hyperstart_agent.go index 932d722c59..251e705ea9 100644 --- a/virtcontainers/hyperstart_agent.go +++ b/virtcontainers/hyperstart_agent.go @@ -143,6 +143,12 @@ func (h *hyper) processHyperRoute(route netlink.Route, deviceName string) *hyper gateway := route.Gw.String() if gateway == "" { gateway = "" + } else if route.Gw.To4() == nil { // Skip IPv6 as it is not supported by hyperstart agent + h.Logger().WithFields(logrus.Fields{ + "unsupported-route-type": "ipv6", + "gateway": gateway, + }).Warn("unsupported route") + return nil } var destination string