Add network backend to podman info

Signed-off-by: Paul Holzinger <pholzing@redhat.com>
This commit is contained in:
Paul Holzinger
2021-11-11 16:29:54 +01:00
parent b2f7430b67
commit 8041d44c93
2 changed files with 2 additions and 0 deletions

View File

@ -39,6 +39,7 @@ type HostInfo struct {
LogDriver string `json:"logDriver"` LogDriver string `json:"logDriver"`
MemFree int64 `json:"memFree"` MemFree int64 `json:"memFree"`
MemTotal int64 `json:"memTotal"` MemTotal int64 `json:"memTotal"`
NetworkBackend string `json:"networkBackend"`
OCIRuntime *OCIRuntimeInfo `json:"ociRuntime"` OCIRuntime *OCIRuntimeInfo `json:"ociRuntime"`
OS string `json:"os"` OS string `json:"os"`
// RemoteSocket returns the UNIX domain socket the Podman service is listening on // RemoteSocket returns the UNIX domain socket the Podman service is listening on

View File

@ -131,6 +131,7 @@ func (r *Runtime) hostInfo() (*define.HostInfo, error) {
Kernel: kv, Kernel: kv,
MemFree: mi.MemFree, MemFree: mi.MemFree,
MemTotal: mi.MemTotal, MemTotal: mi.MemTotal,
NetworkBackend: r.config.Network.NetworkBackend,
OS: runtime.GOOS, OS: runtime.GOOS,
Security: define.SecurityInfo{ Security: define.SecurityInfo{
AppArmorEnabled: apparmor.IsEnabled(), AppArmorEnabled: apparmor.IsEnabled(),