-
Notifications
You must be signed in to change notification settings - Fork 373
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
[Windows]Connect to ovsdb-server using named pipe #389
Conversation
Thanks for your PR. The following commands are available:
These commands can only be run by members of the vmware-tanzu organization. |
pkg/ovs/ovsconfig/default.go
Outdated
defaultConnNetwork = "unix" | ||
defaultConnAddress = "/run/openvswitch/db.sock" | ||
// Wait up to 1 second when get port | ||
defaultGetPortTimeout = 1000 |
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.
nit: use time.Second
.
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.
+1
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.
nit: use
time.Second
.
Thanks Weiqiang and Jianjun. Done
pkg/ovs/ovsconfig/default_windows.go
Outdated
defaultConnAddress = `\\.\pipe\C:openvswitchvarrunopenvswitchdb.sock` | ||
// Wait up to 2 seconds when get port, the operation of port creation | ||
// cost more time on Windows platform than on Linux | ||
defaultGetPortTimeout = 2000 |
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.
2 * time.Second
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.
2 * time.Second
Done
pkg/ovs/ovsconfig/default_windows.go
Outdated
defaultConnNetwork = "winpipe" | ||
defaultConnAddress = `\\.\pipe\C:openvswitchvarrunopenvswitchdb.sock` | ||
// Wait up to 2 seconds when get port, the operation of port creation | ||
// cost more time on Windows platform than on Linux |
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.
cost more time -> takes longer
Add '.' after Linux.
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.
cost more time -> takes longer
Add '.' after Linux.
Thanks Jianjun. Done.
pkg/ovs/ovsconfig/default.go
Outdated
defaultConnNetwork = "unix" | ||
defaultConnAddress = "/run/openvswitch/db.sock" | ||
// Wait up to 1 second when get port | ||
defaultGetPortTimeout = 1000 |
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.
+1
/test-all |
88dd5d3
to
4c4fcec
Compare
/test-all |
2 similar comments
/test-all |
/test-all |
/test-all |
/test-all |
/test-e2e |
/test-all |
2 similar comments
/test-all |
/test-all |
/test-networkpolicy |
On windows platform, ovsdb-server listens on a named pipe by default. This patch change the connection to ovsdb-server from UDS to named pipe on windows. Signed-off-by: Rui Cao <rcao@vmware.com>
/test-e2e |
1 similar comment
/test-e2e |
On windows platform, ovsdb-server listens on a named pipe by default. This patch change the connection to ovsdb-server from UDS to named pipe on windows. Signed-off-by: Rui Cao <rcao@vmware.com>
On windows platform, ovsdb-server listens on a named pipe by default. This patch change the connection to ovsdb-server from UDS to named pipe on windows. Signed-off-by: Rui Cao <rcao@vmware.com>
On windows platform, ovsdb-server listens on a named pipe by default. This patch change the connection to ovsdb-server from UDS to named pipe on windows. Signed-off-by: Rui Cao <rcao@vmware.com>
On windows platform, ovsdb-server listens on a named pipe by default. This patch change the connection to ovsdb-server from UDS to named pipe on windows. Signed-off-by: Rui Cao <rcao@vmware.com>
On windows platform, ovsdb-server listens on a named pipe by default. This patch change the connection to ovsdb-server from UDS to named pipe on windows. Signed-off-by: Rui Cao <rcao@vmware.com>
On windows platform, ovsdb-server listens on a named pipe by default.
This patch change the connection to ovsdb-server from UDS to named
pipe on windows.
Signed-off-by: Rui Cao rcao@vmware.com