mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-06-24 06:27:39 +00:00
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 <archana.m.shinde@intel.com>
This commit is contained in:
parent
9f44729bd3
commit
b6e6924a75
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user