Merge pull request #912 from aidanhs/aphs-expose-ipv6-default-bridge

Expose the enableIPv6 setting
This commit is contained in:
Jana Radhakrishnan 2016-01-29 16:11:15 -08:00
commit 5286d28a22

View file

@ -62,6 +62,7 @@ type NetworkInfo interface {
IpamInfo() ([]*IpamInfo, []*IpamInfo)
DriverOptions() map[string]string
Scope() string
IPv6Enabled() bool
Internal() bool
}
@ -1237,3 +1238,10 @@ func (n *network) Internal() bool {
return n.internal
}
func (n *network) IPv6Enabled() bool {
n.Lock()
defer n.Unlock()
return n.enableIPv6
}