We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 250e6d7 commit 33315aeCopy full SHA for 33315ae
pkg/network/node/ovscontroller.go
@@ -58,10 +58,11 @@ func (oc *ovsController) AlreadySetUp() bool {
58
return false
59
}
60
expectedVersionNote := oc.getVersionNote()
61
- for _, flow := range flows {
62
- parsed, err := ovs.ParseFlow(ovs.ParseForDump, flow)
63
- if err == nil && parsed.Table == ruleVersionTable && parsed.NoteHasPrefix(expectedVersionNote) {
64
- return true
+ // The "version" flow should be the last one, so scan from the end
+ for i := len(flows) - 1; i >= 0; i-- {
+ parsed, err := ovs.ParseFlow(ovs.ParseForDump, flows[i])
+ if err == nil && parsed.Table == ruleVersionTable {
65
+ return parsed.NoteHasPrefix(expectedVersionNote)
66
67
68
0 commit comments