summaryrefslogtreecommitdiff
path: root/libpod/network/netavark/run.go
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2021-11-22 16:39:12 +0100
committerGitHub <noreply@github.com>2021-11-22 16:39:12 +0100
commitbfc929efc44cc9255406ed6c2abec1b8a4f36dab (patch)
tree9d9812aa975b548a6674365e8c9a889eb4ecc99d /libpod/network/netavark/run.go
parent26b45a1564fb01090f6a10776922654641a76681 (diff)
parent8198e96f3192c9a96b0568524d5732e34025e09f (diff)
downloadpodman-bfc929efc44cc9255406ed6c2abec1b8a4f36dab.tar.gz
podman-bfc929efc44cc9255406ed6c2abec1b8a4f36dab.tar.bz2
podman-bfc929efc44cc9255406ed6c2abec1b8a4f36dab.zip
Merge pull request #12372 from Luap99/syslog-netavark
Make sure netavark output is logged to the syslog
Diffstat (limited to 'libpod/network/netavark/run.go')
-rw-r--r--libpod/network/netavark/run.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/libpod/network/netavark/run.go b/libpod/network/netavark/run.go
index 2f839151e..54917a981 100644
--- a/libpod/network/netavark/run.go
+++ b/libpod/network/netavark/run.go
@@ -54,7 +54,7 @@ func (n *netavarkNetwork) Setup(namespacePath string, options types.SetupOptions
}
result := map[string]types.StatusBlock{}
- err = execNetavark(n.netavarkBinary, []string{"setup", namespacePath}, netavarkOpts, &result)
+ err = n.execNetavark([]string{"setup", namespacePath}, netavarkOpts, &result)
if len(result) != len(options.Networks) {
logrus.Errorf("unexpected netavark result: %v", result)
@@ -86,7 +86,7 @@ func (n *netavarkNetwork) Teardown(namespacePath string, options types.TeardownO
return errors.Wrap(err, "failed to convert net opts")
}
- retErr := execNetavark(n.netavarkBinary, []string{"teardown", namespacePath}, netavarkOpts, nil)
+ retErr := n.execNetavark([]string{"teardown", namespacePath}, netavarkOpts, nil)
// when netavark returned an error we still free the used ips
// otherwise we could end up in a state where block the ips forever