1
0
mirror of https://github.com/moby/moby.git synced 2025-11-21 08:21:12 +03:00

api/types/network: use netip types as appropriate

And generate the ServiceInfo struct from the Swagger spec.

Signed-off-by: Cory Snider <csnider@mirantis.com>
This commit is contained in:
Cory Snider
2025-09-10 12:38:57 -04:00
committed by Sebastiaan van Stijn
parent ef31514a9f
commit a90adb6dc1
61 changed files with 782 additions and 503 deletions

View File

@@ -110,5 +110,5 @@ func (s *DockerAPISuite) TestInspectAPIBridgeNetworkSettings121(c *testing.T) {
settings := inspectJSON.NetworkSettings
assert.Assert(c, settings.Networks["bridge"] != nil)
assert.Assert(c, settings.Networks["bridge"].IPAddress != "")
assert.Assert(c, settings.Networks["bridge"].IPAddress.IsValid())
}