Skip to content

Commit 1fb39b4

Browse files
author
Dustin Blackman
committed
add missing variables
1 parent 8f6ff1a commit 1fb39b4

File tree

2 files changed

+18
-12
lines changed

2 files changed

+18
-12
lines changed

docker-gen.go

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -56,12 +56,15 @@ type Address struct {
5656
}
5757

5858
type Network struct {
59-
IP string
60-
Name string
61-
Gateway string
62-
EndpointID string
63-
IPv6Gateway string
64-
GlobalIPv6Address string
59+
IP string
60+
Name string
61+
Gateway string
62+
EndpointID string
63+
IPv6Gateway string
64+
GlobalIPv6Address string
65+
MacAddress string
66+
GlobalIPv6PrefixLen int
67+
IPPrefixLen int
6568
}
6669

6770
type Volume struct {

docker_client.go

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -151,12 +151,15 @@ func getContainers(client *docker.Client) ([]*RuntimeContainer, error) {
151151
}
152152
for k, v := range container.NetworkSettings.Networks {
153153
network := Network{
154-
IP: v.IPAddress,
155-
Name: k,
156-
Gateway: v.Gateway,
157-
EndpointID: v.EndpointID,
158-
IPv6Gateway: v.IPv6Gateway,
159-
GlobalIPv6Address: v.GlobalIPv6Address,
154+
IP: v.IPAddress,
155+
Name: k,
156+
Gateway: v.Gateway,
157+
EndpointID: v.EndpointID,
158+
IPv6Gateway: v.IPv6Gateway,
159+
GlobalIPv6Address: v.GlobalIPv6Address,
160+
MacAddress: v.MacAddress,
161+
GlobalIPv6PrefixLen: v.GlobalIPv6PrefixLen,
162+
IPPrefixLen: v.IPPrefixLen,
160163
}
161164

162165
runtimeContainer.Networks = append(runtimeContainer.Networks,

0 commit comments

Comments
 (0)