Skip to content

Commit ec43cef

Browse files
Fix secondaryipaddresses format (#443)
1 parent e1fc278 commit ec43cef

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

api/structs.go

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1107,7 +1107,7 @@ type InspectBasicNetworkConfig struct {
11071107
IPPrefixLen int `json:"IPPrefixLen"`
11081108
// SecondaryIPAddresses is a list of extra IP Addresses that the
11091109
// container has been assigned in this network.
1110-
SecondaryIPAddresses []string `json:"SecondaryIPAddresses,omitempty"`
1110+
SecondaryIPAddresses []SecondaryIPAddresses `json:"SecondaryIPAddresses,omitempty"`
11111111
// IPv6Gateway is the IPv6 gateway this network will use.
11121112
IPv6Gateway string `json:"IPv6Gateway"`
11131113
// GlobalIPv6Address is the global-scope IPv6 Address for this network.
@@ -1165,6 +1165,11 @@ type InspectNetworkSettings struct {
11651165
Networks map[string]*InspectAdditionalNetwork `json:"Networks,omitempty"`
11661166
}
11671167

1168+
type SecondaryIPAddresses struct {
1169+
Addr string `json:"Addr"`
1170+
PrefixLength int `json:"PrefixLength"`
1171+
}
1172+
11681173
// InspectContainerData provides a detailed record of a container's configuration
11691174
// and state as viewed by Libpod.
11701175
// Large portions of this structure are defined such that the output is

0 commit comments

Comments
 (0)