Skip to content

Commit 74738c3

Browse files
author
Rajat Chopra
committed
Merge pull request openshift#104 from rajatchopra/mt_reorg
make cross node services work
2 parents e0abb55 + ee8d7e1 commit 74738c3

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

ovssubnet/controller/multitenant/bin/openshift-sdn-multitenant-setup.sh

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -63,17 +63,18 @@ function setup() {
6363

6464
# Table 2; incoming from vxlan
6565
ovs-ofctl -O OpenFlow13 add-flow br0 "table=2, arp, actions=goto_table:7"
66+
ovs-ofctl -O OpenFlow13 add-flow br0 "table=2, priority=200, ip, nw_dst=${subnet_gateway}, actions=output:2"
6667
ovs-ofctl -O OpenFlow13 add-flow br0 "table=2, tun_id=0, actions=goto_table:4"
67-
ovs-ofctl -O OpenFlow13 add-flow br0 "table=2, ip, nw_dst=${subnet}, actions=move:NXM_NX_TUN_ID[0..31]->NXM_NX_REG0[], goto_table:5"
68+
ovs-ofctl -O OpenFlow13 add-flow br0 "table=2, priority=100, ip, nw_dst=${subnet}, actions=move:NXM_NX_TUN_ID[0..31]->NXM_NX_REG0[], goto_table:5"
6869

6970
# Table 3; incoming from container; filled in by openshift-ovs-subnet
7071
# But let incoming traffic from docker-only containers through (ingress on vovsbr)
7172
ovs-ofctl -O OpenFlow13 add-flow br0 "table=3, cookie=0x9, in_port=9, ip, actions=goto_table:4"
7273

7374
# Table 4; general routing
74-
ovs-ofctl -O OpenFlow13 add-flow br0 "table=4, ip, nw_dst=${subnet_gateway}, actions=output:2"
75-
ovs-ofctl -O OpenFlow13 add-flow br0 "table=4, ip, nw_dst=${subnet}, actions=goto_table:5"
76-
ovs-ofctl -O OpenFlow13 add-flow br0 "table=4, ip, nw_dst=${cluster_subnet}, actions=goto_table:6"
75+
ovs-ofctl -O OpenFlow13 add-flow br0 "table=4, priority=200, ip, nw_dst=${subnet_gateway}, actions=output:2"
76+
ovs-ofctl -O OpenFlow13 add-flow br0 "table=4, priority=150, ip, nw_dst=${subnet}, actions=goto_table:5"
77+
ovs-ofctl -O OpenFlow13 add-flow br0 "table=4, priority=100, ip, nw_dst=${cluster_subnet}, actions=goto_table:6"
7778
ovs-ofctl -O OpenFlow13 add-flow br0 "table=4, priority=0, ip, actions=output:2"
7879

7980
# Table 5; to local container; mostly filled in by openshift-ovs-multitenant

0 commit comments

Comments
 (0)