Add network backend to podman info
Signed-off-by: Paul Holzinger <pholzing@redhat.com>
This commit is contained in:
parent
b2f7430b67
commit
8041d44c93
|
|
@ -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
|
||||||
|
|
|
||||||
|
|
@ -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(),
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue