Expose the enableIPv6 setting

Signed-off-by: Aidan Hobson Sayers <aidanhs@cantab.net>
This commit is contained in:
Aidan Hobson Sayers 2016-01-29 18:10:06 +00:00
parent 16efd61364
commit 01d2ad412f
1 changed files with 8 additions and 0 deletions

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
}