From e79da6593df391889370f9e138970dbf8475a506 Mon Sep 17 00:00:00 2001 From: Tsuzu <8574909+tsuzu@users.noreply.github.com> Date: Sun, 16 Jul 2023 16:30:49 +0000 Subject: [PATCH] Fix a bug --- tetracni/cmd/route-pods/main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tetracni/cmd/route-pods/main.go b/tetracni/cmd/route-pods/main.go index 8abaaeb56..75b9c94c0 100644 --- a/tetracni/cmd/route-pods/main.go +++ b/tetracni/cmd/route-pods/main.go @@ -93,7 +93,7 @@ func setupVeth(hostVethName, peerVethName string, peerNetnsFd int, peerNetnsNetl return nil, nil, fmt.Errorf("faile create a veth %s: %w", hostVethName, err) } - return updateVeth(hostVethName, peerVethName, int(ns), peerNetnsNetlink) + return updateVeth(hostVethName, peerVethName, peerNetnsFd, peerNetnsNetlink) default: return nil, nil, fmt.Errorf("failed to find %s, %s: %w", hostVethName, peerVethName, err) }