Skip to content

Commit 8dfe5dd

Browse files
author
OpenShift Bot
authored
Merge pull request #12145 from danwinship/kill-plugin-script
Merged by openshift-bot
2 parents d260e80 + 972fe78 commit 8dfe5dd

File tree

4 files changed

+201
-133
lines changed

4 files changed

+201
-133
lines changed

pkg/sdn/plugin/bin/openshift-sdn-ovs

+3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
#!/bin/bash
22
set -ex
33

4+
# NOTE: This is no longer used; it is now installed solely to avoid breakage during
5+
# upgrades, and will go away in 3.7.
6+
47
lock_file=/var/lock/openshift-sdn.lock
58

69
action=$1

pkg/sdn/plugin/controller.go

+3-3
Original file line numberDiff line numberDiff line change
@@ -261,7 +261,7 @@ func (plugin *OsdnNode) SetupSDN() (bool, error) {
261261
// eg, "table=10, priority=100, tun_src=${remote_node_ip}, actions=goto_table:30"
262262
otx.AddFlow("table=10, priority=0, actions=drop")
263263

264-
// Table 20: from OpenShift container; validate IP/MAC, assign tenant-id; filled in by openshift-sdn-ovs
264+
// Table 20: from OpenShift container; validate IP/MAC, assign tenant-id; filled in by setupPodFlows
265265
// eg, "table=20, priority=100, in_port=${ovs_port}, arp, nw_src=${ipaddr}, arp_sha=${macaddr}, actions=load:${tenant_id}->NXM_NX_REG0[], goto_table:21"
266266
// "table=20, priority=100, in_port=${ovs_port}, ip, nw_src=${ipaddr}, actions=load:${tenant_id}->NXM_NX_REG0[], goto_table:21"
267267
// (${tenant_id} is always 0 for single-tenant)
@@ -287,7 +287,7 @@ func (plugin *OsdnNode) SetupSDN() (bool, error) {
287287
otx.AddFlow("table=30, priority=0, ip, actions=goto_table:100")
288288
otx.AddFlow("table=30, priority=0, arp, actions=drop")
289289

290-
// Table 40: ARP to local container, filled in by openshift-sdn-ovs
290+
// Table 40: ARP to local container, filled in by setupPodFlows
291291
// eg, "table=40, priority=100, arp, nw_dst=${container_ip}, actions=output:${ovs_port}"
292292
otx.AddFlow("table=40, priority=0, actions=drop")
293293

@@ -300,7 +300,7 @@ func (plugin *OsdnNode) SetupSDN() (bool, error) {
300300
// eg, "table=60, priority=100, reg0=${tenant_id}, ${service_proto}, nw_dst=${service_ip}, tp_dst=${service_port}, actions=load:${tenant_id}->NXM_NX_REG1[], load:2->NXM_NX_REG2[], goto_table:80"
301301
otx.AddFlow("table=60, priority=0, actions=drop")
302302

303-
// Table 70: IP to local container: vnid/port mappings; filled in by openshift-sdn-ovs
303+
// Table 70: IP to local container: vnid/port mappings; filled in by setupPodFlows
304304
// eg, "table=70, priority=100, ip, nw_dst=${ipaddr}, actions=load:${tenant_id}->NXM_NX_REG1[], load:${ovs_port}->NXM_NX_REG2[], goto_table:80"
305305
otx.AddFlow("table=70, priority=0, actions=drop")
306306

0 commit comments

Comments
 (0)