mirror of
https://github.com/containers/podman.git
synced 2025-12-04 04:09:40 +08:00
vendor latest c/common main
Includes a new libnetwork API to get the rootlessnetns ips. Signed-off-by: Paul Holzinger <pholzing@redhat.com>
This commit is contained in:
7
vendor/github.com/containers/common/libnetwork/cni/run.go
generated
vendored
7
vendor/github.com/containers/common/libnetwork/cni/run.go
generated
vendored
@@ -295,3 +295,10 @@ func (n *cniNetwork) RunInRootlessNetns(toRun func() error) error {
|
||||
}
|
||||
return n.rootlessNetns.Run(n.lock, toRun)
|
||||
}
|
||||
|
||||
func (n *cniNetwork) RootlessNetnsInfo() (*types.RootlessNetnsInfo, error) {
|
||||
if n.rootlessNetns == nil {
|
||||
return nil, types.ErrNotRootlessNetns
|
||||
}
|
||||
return n.rootlessNetns.Info(), nil
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user