From 6a84db1f03343f12bdeee5e9efa4bc8b5aa67fd9 Mon Sep 17 00:00:00 2001 From: Manuel Buil Date: Wed, 8 Nov 2023 09:44:38 +0100 Subject: [PATCH] Improve dualStack log Signed-off-by: Manuel Buil --- pkg/agent/flannel/flannel.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/pkg/agent/flannel/flannel.go b/pkg/agent/flannel/flannel.go index 0e09417b1a..d4ce76de72 100644 --- a/pkg/agent/flannel/flannel.go +++ b/pkg/agent/flannel/flannel.go @@ -177,12 +177,11 @@ func LookupExtInterface(iface *net.Interface, netMode int) (*backend.ExternalInt if err != nil { return nil, fmt.Errorf("failed to find IPv4 address for interface %s", iface.Name) } - logrus.Infof("The interface %s with ipv4 address %s will be used by flannel", iface.Name, ifaceAddr[0]) ifacev6Addr, err = ip.GetInterfaceIP6Addrs(iface) if err != nil { return nil, fmt.Errorf("failed to find IPv6 address for interface %s", iface.Name) } - logrus.Infof("Using dual-stack mode. The ipv6 address %s will be used by flannel", ifacev6Addr[0]) + logrus.Infof("Using dual-stack mode. The interface %s with ipv4 address %s and ipv6 address %s will be used by flannel", iface.Name, ifaceAddr[0], ifacev6Addr[0]) default: ifaceAddr = append(ifaceAddr, nil) ifacev6Addr = append(ifacev6Addr, nil)