Moved the TOML based Configuration to dnet

The configuration format for docker runtime is based on daemon flags and
hence adjusting the libnetwork configuration to accomodate it by moving
the TOML based configuration to the dnet tool.

Also changed the controller configuration via options

Signed-off-by: Madhu Venugopal <madhu@docker.com>
This commit is contained in:
Madhu Venugopal
2015-06-12 12:46:12 -07:00
parent acfac0ba4c
commit f8eb4da90c
12 changed files with 142 additions and 58 deletions
+1 -3
View File
@@ -3,7 +3,6 @@ package main
import (
"fmt"
"net"
"os"
"time"
log "github.com/Sirupsen/logrus"
@@ -14,8 +13,7 @@ import (
func main() {
log.SetLevel(log.DebugLevel)
os.Setenv("LIBNETWORK_CFG", "libnetwork.toml")
controller, err := libnetwork.New("libnetwork.toml")
controller, err := libnetwork.New()
if err != nil {
log.Fatal(err)
}