From d10b7c1afe88e52534d140cccbc07323c236d366 Mon Sep 17 00:00:00 2001 From: Archana Shinde Date: Mon, 12 Mar 2018 11:07:46 -0700 Subject: [PATCH] ipv6: Ignore routes that have ipv6 gateway 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 --- hyperstart_agent.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/hyperstart_agent.go b/hyperstart_agent.go index 29a73e7b..be420c0a 100644 --- a/hyperstart_agent.go +++ b/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