summaryrefslogtreecommitdiff
path: root/pkg/domain/infra/tunnel/network.go
diff options
context:
space:
mode:
authorJakub Guzik <jakubmguzik@gmail.com>2021-04-10 00:01:05 +0200
committerJakub Guzik <jakubmguzik@gmail.com>2021-04-10 00:21:35 +0200
commit94b972630643b6f4b472a4b03f58fa757d3ca6a5 (patch)
tree7b4232ef4e0996d56a10d050ba0db608af22ed49 /pkg/domain/infra/tunnel/network.go
parent54dce001cce131bbbdcf16512a4722e080561fc7 (diff)
downloadpodman-94b972630643b6f4b472a4b03f58fa757d3ca6a5.tar.gz
podman-94b972630643b6f4b472a4b03f58fa757d3ca6a5.tar.bz2
podman-94b972630643b6f4b472a4b03f58fa757d3ca6a5.zip
Add network prune filters support to bindings
Signed-off-by: Jakub Guzik <jakubmguzik@gmail.com>
Diffstat (limited to 'pkg/domain/infra/tunnel/network.go')
-rw-r--r--pkg/domain/infra/tunnel/network.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/pkg/domain/infra/tunnel/network.go b/pkg/domain/infra/tunnel/network.go
index adf34460c..7e59e44c2 100644
--- a/pkg/domain/infra/tunnel/network.go
+++ b/pkg/domain/infra/tunnel/network.go
@@ -92,5 +92,6 @@ func (ic *ContainerEngine) NetworkExists(ctx context.Context, networkname string
// Network prune removes unused cni networks
func (ic *ContainerEngine) NetworkPrune(ctx context.Context, options entities.NetworkPruneOptions) ([]*entities.NetworkPruneReport, error) {
- return network.Prune(ic.ClientCtx, nil)
+ opts := new(network.PruneOptions).WithFilters(options.Filters)
+ return network.Prune(ic.ClientCtx, opts)
}