daemon/network: Settings: move sandbox fields together
Just a minor nit; let's move these fields together. Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
parent
405f571ae8
commit
20b770237c
2 changed files with 3 additions and 3 deletions
|
@ -60,10 +60,10 @@ func (daemon *Daemon) ContainerInspectCurrent(ctx context.Context, name string,
|
|||
NetworkSettingsBase: types.NetworkSettingsBase{
|
||||
Bridge: ctr.NetworkSettings.Bridge,
|
||||
SandboxID: ctr.NetworkSettings.SandboxID,
|
||||
SandboxKey: ctr.NetworkSettings.SandboxKey,
|
||||
HairpinMode: ctr.NetworkSettings.HairpinMode,
|
||||
LinkLocalIPv6Address: ctr.NetworkSettings.LinkLocalIPv6Address,
|
||||
LinkLocalIPv6PrefixLen: ctr.NetworkSettings.LinkLocalIPv6PrefixLen,
|
||||
SandboxKey: ctr.NetworkSettings.SandboxKey,
|
||||
SecondaryIPAddresses: ctr.NetworkSettings.SecondaryIPAddresses,
|
||||
SecondaryIPv6Addresses: ctr.NetworkSettings.SecondaryIPv6Addresses,
|
||||
},
|
||||
|
@ -251,11 +251,11 @@ func (daemon *Daemon) getBackwardsCompatibleNetworkSettings(settings *network.Se
|
|||
NetworkSettingsBase: types.NetworkSettingsBase{
|
||||
Bridge: settings.Bridge,
|
||||
SandboxID: settings.SandboxID,
|
||||
SandboxKey: settings.SandboxKey,
|
||||
HairpinMode: settings.HairpinMode,
|
||||
LinkLocalIPv6Address: settings.LinkLocalIPv6Address,
|
||||
LinkLocalIPv6PrefixLen: settings.LinkLocalIPv6PrefixLen,
|
||||
Ports: settings.Ports,
|
||||
SandboxKey: settings.SandboxKey,
|
||||
SecondaryIPAddresses: settings.SecondaryIPAddresses,
|
||||
SecondaryIPv6Addresses: settings.SecondaryIPv6Addresses,
|
||||
},
|
||||
|
|
|
@ -15,13 +15,13 @@ import (
|
|||
type Settings struct {
|
||||
Bridge string
|
||||
SandboxID string
|
||||
SandboxKey string
|
||||
HairpinMode bool
|
||||
LinkLocalIPv6Address string
|
||||
LinkLocalIPv6PrefixLen int
|
||||
Networks map[string]*EndpointSettings
|
||||
Service *clustertypes.ServiceConfig
|
||||
Ports nat.PortMap
|
||||
SandboxKey string
|
||||
SecondaryIPAddresses []networktypes.Address
|
||||
SecondaryIPv6Addresses []networktypes.Address
|
||||
IsAnonymousEndpoint bool
|
||||
|
|
Loading…
Add table
Reference in a new issue