diff options
author | Paul Holzinger <pholzing@redhat.com> | 2021-11-11 16:29:54 +0100 |
---|---|---|
committer | Paul Holzinger <pholzing@redhat.com> | 2021-11-11 16:49:46 +0100 |
commit | 8041d44c93ac46d330325cda849716f5ba2c40d9 (patch) | |
tree | a41cd13e92d05d0c1271210490e0a703092cf0e0 /libpod | |
parent | b2f7430b6751e4a8177ee0088ea8e09675703828 (diff) | |
download | podman-8041d44c93ac46d330325cda849716f5ba2c40d9.tar.gz podman-8041d44c93ac46d330325cda849716f5ba2c40d9.tar.bz2 podman-8041d44c93ac46d330325cda849716f5ba2c40d9.zip |
Add network backend to podman info
Signed-off-by: Paul Holzinger <pholzing@redhat.com>
Diffstat (limited to 'libpod')
-rw-r--r-- | libpod/define/info.go | 1 | ||||
-rw-r--r-- | libpod/info.go | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/libpod/define/info.go b/libpod/define/info.go index 61f2f4c75..15400991f 100644 --- a/libpod/define/info.go +++ b/libpod/define/info.go @@ -39,6 +39,7 @@ type HostInfo struct { LogDriver string `json:"logDriver"` MemFree int64 `json:"memFree"` MemTotal int64 `json:"memTotal"` + NetworkBackend string `json:"networkBackend"` OCIRuntime *OCIRuntimeInfo `json:"ociRuntime"` OS string `json:"os"` // RemoteSocket returns the UNIX domain socket the Podman service is listening on diff --git a/libpod/info.go b/libpod/info.go index 8d0b19f23..a1db5763a 100644 --- a/libpod/info.go +++ b/libpod/info.go @@ -131,6 +131,7 @@ func (r *Runtime) hostInfo() (*define.HostInfo, error) { Kernel: kv, MemFree: mi.MemFree, MemTotal: mi.MemTotal, + NetworkBackend: r.config.Network.NetworkBackend, OS: runtime.GOOS, Security: define.SecurityInfo{ AppArmorEnabled: apparmor.IsEnabled(), |