Skip to content
This repository has been archived by the owner on Apr 3, 2018. It is now read-only.

Commit

Permalink
ipv6: Ignore routes that have ipv6 gateway
Browse files Browse the repository at this point in the history
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 <archana.m.shinde@intel.com>
  • Loading branch information
amshinde committed Mar 12, 2018
1 parent 4fb2dac commit d10b7c1
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions hyperstart_agent.go
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,12 @@ func (h *hyper) processHyperRoute(route netlink.Route, deviceName string) *hyper
gateway := route.Gw.String()
if gateway == "<nil>" {
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
Expand Down

0 comments on commit d10b7c1

Please sign in to comment.