Fix network inspect for default networks.

- Keep old fields in NetworkSetting to respect the deprecation policy.

Signed-off-by: David Calavera <david.calavera@gmail.com>
(cherry picked from commit f301c5765a0d7f4b6866cedfdface6f87874ff53)
This commit is contained in:
David Calavera
2015-10-30 21:18:07 -04:00
committed by Tibor Vass
parent 51e5073111
commit 2ec7433aa4
7 changed files with 123 additions and 49 deletions
+8
View File
@@ -1592,3 +1592,11 @@ func waitInspect(name, expr, expected string, timeout time.Duration) error {
}
return nil
}
func getInspectBody(c *check.C, version, id string) []byte {
endpoint := fmt.Sprintf("/%s/containers/%s/json", version, id)
status, body, err := sockRequest("GET", endpoint, nil)
c.Assert(err, check.IsNil)
c.Assert(status, check.Equals, http.StatusOK)
return body
}