summaryrefslogtreecommitdiff
path: root/libnetwork/drivers_linux.go
diff options
context:
space:
mode:
authorMadhu Venugopal <madhu@docker.com>2015-06-06 10:21:51 -0700
committerMadhu Venugopal <madhu@docker.com>2015-06-10 23:59:38 -0700
commit9e8974cc64c2824d23aa2fecc682f7a8ccfce241 (patch)
tree6b605543f15b48dc502fd077507952fe200b480b /libnetwork/drivers_linux.go
parentf88824fb8a8109b5d969934f80e0a41a070418cf (diff)
downloaddocker-9e8974cc64c2824d23aa2fecc682f7a8ccfce241.tar.gz
Replacing isReservedNetwork with Driver capability
Currently store makes use of a static isReservedNetwork check to decide if a network needs to be stored in the distributed store or not. But it is better if the check is not static, but be determined based on the capability of the driver that backs the network. Hence introducing a new capability mechanism to the driver which it can express its capability during registration. Making use of first such capability : Scope. This can be expanded in the future for more such cases. Signed-off-by: Madhu Venugopal <madhu@docker.com>
Diffstat (limited to 'libnetwork/drivers_linux.go')
-rw-r--r--libnetwork/drivers_linux.go2
1 files changed, 0 insertions, 2 deletions
diff --git a/libnetwork/drivers_linux.go b/libnetwork/drivers_linux.go
index 130f7ab343..7de28f95eb 100644
--- a/libnetwork/drivers_linux.go
+++ b/libnetwork/drivers_linux.go
@@ -8,8 +8,6 @@ import (
"github.com/docker/libnetwork/drivers/remote"
)
-type driverTable map[string]driverapi.Driver
-
func initDrivers(dc driverapi.DriverCallback) error {
for _, fn := range [](func(driverapi.DriverCallback) error){
bridge.Init,