-
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] Prepare ovs bridge #564
Conversation
Thanks for your PR. The following commands are available:
These commands can only be run by members of the vmware-tanzu organization. |
cd58292
to
df8780f
Compare
f007902
to
e8091ce
Compare
/test-all |
/test-e2e |
8bcea70
to
12ad419
Compare
3335c22
to
6fe2ce5
Compare
/test-all |
/test-conformance |
/test-e2e |
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.
LGTM overall, except for some comments
c5ebb1a
to
be0d8bc
Compare
/test-all |
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.
LGTM.
@jianjuns Could you help review the PR to check if there're any more advice? |
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.
Sorry for the late review. Have a few more comments.
@@ -23,6 +23,7 @@ import ( | |||
|
|||
const ( | |||
DefaultTunPortName = "tun0" | |||
AutoAssignedOFPort = 0 |
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.
This one should be defined in ovsconfig, but not here, as it is a predefined value in OVS.
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.
Sure, it's better to move the const to ovsconfig. Done.
And actually it's not a predefined value in OVS. We just use a invalid request port number as param and OVS will assign port number automatically.
/test-all |
3e6d9b4
to
fb1f44e
Compare
/test-all |
/test-all |
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.
LGTM.
Add windows platform specific operations during OVS bridge preparation: 1. Set fixed datapath_id for OVS bridge to avoid Openflow channel interruption. 2. Add default internal port/interface when creating OVS bridge. On windows platform OVS default inteface is used to forward host traffic. 3. Move IP/MAC from uplink interface to OVS bridge. 4. Add uplink port to OVS bridge. 5. Install Openflow entries for uplink/bridge to support host networking. Signed-off-by: Rui Cao <rcao@vmware.com>
/test-all |
/test-e2e |
Add windows platform specific operations during OVS bridge preparation: 1. Set fixed datapath_id for OVS bridge to avoid Openflow channel interruption. 2. Add default internal port/interface when creating OVS bridge. On windows platform OVS default inteface is used to forward host traffic. 3. Move IP/MAC from uplink interface to OVS bridge. 4. Add uplink port to OVS bridge. 5. Install Openflow entries for uplink/bridge to support host networking. Signed-off-by: Rui Cao <rcao@vmware.com> # Conflicts: # pkg/agent/agent.go # pkg/agent/config/node_config.go
Add windows platform specific operations during OVS bridge preparation: 1. Set fixed datapath_id for OVS bridge to avoid Openflow channel interruption. 2. Add default internal port/interface when creating OVS bridge. On windows platform OVS default inteface is used to forward host traffic. 3. Move IP/MAC from uplink interface to OVS bridge. 4. Add uplink port to OVS bridge. 5. Install Openflow entries for uplink/bridge to support host networking. Signed-off-by: Rui Cao <rcao@vmware.com> # Conflicts: # pkg/agent/agent.go # pkg/agent/config/node_config.go
Add windows platform specific operations during OVS bridge preparation: 1. Set fixed datapath_id for OVS bridge to avoid Openflow channel interruption. 2. Add default internal port/interface when creating OVS bridge. On windows platform OVS default inteface is used to forward host traffic. 3. Move IP/MAC from uplink interface to OVS bridge. 4. Add uplink port to OVS bridge. 5. Install Openflow entries for uplink/bridge to support host networking. Signed-off-by: Rui Cao <rcao@vmware.com> # Conflicts: # pkg/agent/agent.go # pkg/agent/config/node_config.go
Add windows platform specific operations during OVS bridge preparation: 1. Set fixed datapath_id for OVS bridge to avoid Openflow channel interruption. 2. Add default internal port/interface when creating OVS bridge. On windows platform OVS default inteface is used to forward host traffic. 3. Move IP/MAC from uplink interface to OVS bridge. 4. Add uplink port to OVS bridge. 5. Install Openflow entries for uplink/bridge to support host networking. Signed-off-by: Rui Cao <rcao@vmware.com> # Conflicts: # pkg/agent/agent.go # pkg/agent/config/node_config.go
Add windows platform specific operations during OVS bridge preparation: 1. Set fixed datapath_id for OVS bridge to avoid Openflow channel interruption. 2. Add default internal port/interface when creating OVS bridge. On windows platform OVS default inteface is used to forward host traffic. 3. Move IP/MAC from uplink interface to OVS bridge. 4. Add uplink port to OVS bridge. 5. Install Openflow entries for uplink/bridge to support host networking. Signed-off-by: Rui Cao <rcao@vmware.com> # Conflicts: # pkg/agent/agent.go # pkg/agent/config/node_config.go
Add windows platform specific operations during OVS bridge preparation: 1. Set fixed datapath_id for OVS bridge to avoid Openflow channel interruption. 2. Add default internal port/interface when creating OVS bridge. On windows platform OVS default inteface is used to forward host traffic. 3. Move IP/MAC from uplink interface to OVS bridge. 4. Add uplink port to OVS bridge. 5. Install Openflow entries for uplink/bridge to support host networking. Signed-off-by: Rui Cao <rcao@vmware.com> # Conflicts: # pkg/agent/agent.go # pkg/agent/config/node_config.go
Depend on Wenyingd's PR: Enable Windows Pod to access external addresses #393
Add windows platform specific operations during OVS bridge preparation:
On windows platform OVS default inteface is used to forward host traffic.