Skip to content

Commit

Permalink
Fix a bug
Browse files Browse the repository at this point in the history
  • Loading branch information
tsuzu committed Jul 16, 2023
1 parent 1760afe commit e79da65
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tetracni/cmd/route-pods/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
Expand Down

0 comments on commit e79da65

Please sign in to comment.