Display internal flag on network inspect

Also adds internal network tests for bridge network

Signed-off-by: Chun Chen <ramichen@tencent.com>
Upstream-commit: c199506b59f60ac456cb0448ddd86e6dec92bc0a
Component: engine
This commit is contained in:
Chun Chen
2016-01-15 15:31:12 +08:00
parent e7c326da3c
commit e109e016c1
6 changed files with 22 additions and 0 deletions

View File

@ -164,6 +164,7 @@ func buildNetworkResource(nw libnetwork.Network) *types.NetworkResource {
r.Options = nw.Info().DriverOptions()
r.Containers = make(map[string]types.EndpointResource)
buildIpamResources(r, nw)
r.Internal = nw.Info().Internal()
epl := nw.Endpoints()
for _, e := range epl {