From 17a468d32ca7c5535a3db8ac3066d0d5325ae0f1 Mon Sep 17 00:00:00 2001 From: Thomas Ferrandiz Date: Fri, 12 Apr 2024 09:50:41 +0000 Subject: [PATCH] remove unimplemented error in windows trafficmngr --- pkg/trafficmngr/iptables/iptables_windows.go | 5 +++-- pkg/trafficmngr/nftables/nftables_windows.go | 4 ++-- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/pkg/trafficmngr/iptables/iptables_windows.go b/pkg/trafficmngr/iptables/iptables_windows.go index 82f8b0878a..f0cbb853d3 100644 --- a/pkg/trafficmngr/iptables/iptables_windows.go +++ b/pkg/trafficmngr/iptables/iptables_windows.go @@ -36,7 +36,8 @@ type IPTables interface { } func (iptm IPTablesManager) Init(ctx context.Context, wg *sync.WaitGroup) error { - return trafficmngr.ErrUnimplemented + log.Warning(trafficmngr.ErrUnimplemented) + return nil } func (iptm *IPTablesManager) SetupAndEnsureForwardRules(ctx context.Context, flannelIPv4Network ip.IP4Net, flannelIPv6Network ip.IP6Net, resyncPeriod int) { @@ -46,6 +47,6 @@ func (iptm *IPTablesManager) SetupAndEnsureMasqRules(ctx context.Context, flanne flannelIPv6Net, prevIPv6Subnet, prevIPv6Network ip.IP6Net, currentlease *lease.Lease, resyncPeriod int) error { - log.Error(trafficmngr.ErrUnimplemented) + log.Warning(trafficmngr.ErrUnimplemented) return nil } diff --git a/pkg/trafficmngr/nftables/nftables_windows.go b/pkg/trafficmngr/nftables/nftables_windows.go index 99d940f3f6..1003699c15 100644 --- a/pkg/trafficmngr/nftables/nftables_windows.go +++ b/pkg/trafficmngr/nftables/nftables_windows.go @@ -29,7 +29,7 @@ type NFTablesManager struct { } func (nftm *NFTablesManager) Init(ctx context.Context, wg *sync.WaitGroup) error { - log.Error(trafficmngr.ErrUnimplemented) + log.Warning(trafficmngr.ErrUnimplemented) return nil } @@ -41,6 +41,6 @@ func (nftm *NFTablesManager) SetupAndEnsureMasqRules(ctx context.Context, flanne flannelIPv6Net, prevIPv6Subnet, prevIPv6Network ip.IP6Net, currentlease *lease.Lease, resyncPeriod int) error { - log.Error(trafficmngr.ErrUnimplemented) + log.Warning(trafficmngr.ErrUnimplemented) return nil }