-
Notifications
You must be signed in to change notification settings - Fork 31
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Adapt new version of docker #47
base: master
Are you sure you want to change the base?
Conversation
…rk create by this driver after restart
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this PR is valid for testing the ovs-plugin with docker 1.13. Thanks.
//recover networks | ||
netlist,err :=d.dockerer.client.ListNetworks("") | ||
if err != nil { | ||
return nil, fmt.Errorf("could not get docker networks: %s", err) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nipick: extra space after get
@@ -193,11 +232,12 @@ func NewDriver() (*Driver, error) { | |||
var ovsdb *libovsdb.OvsdbClient | |||
retries := 3 | |||
for i := 0; i < retries; i++ { | |||
ovsdb, err = libovsdb.Connect(localhost, ovsdbPort) | |||
//ovsdb, err = libovsdb.Connect(localhost, ovsdbPort) | |||
ovsdb, err = libovsdb.ConnectWithUnixSocket("/var/run/openvswitch/db.sock") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this var/run/openvswitch/db.sock
the default value for ovsdb socket?
Actually, I'd prefer using libovsdb.Connect rather than ConnectWithUnixSocket.
return nil, fmt.Errorf("could not get docker networks: %s", err) | ||
} | ||
for _, net := range netlist{ | ||
if net.Driver == DriverName{ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ditto
1,Modkify dknet to go-plugins-helpers, it seems the dknet API is not compatible new version ( such as 1.13) docker plugin‘s API formate.
2,Plugin could get exist network create by this driver even plugin restart