Committed by
Gerrit Code Review
Ignore table ID from flow stats reply when creating OF1.0 flow rule.
Change-Id: Ife15bb7e05d78e9d505e0feb5d7381669bcc3b94
Showing
1 changed file
with
4 additions
and
2 deletions
... | @@ -168,8 +168,10 @@ public class FlowEntryBuilder { | ... | @@ -168,8 +168,10 @@ public class FlowEntryBuilder { |
168 | .withTreatment(buildTreatment()) | 168 | .withTreatment(buildTreatment()) |
169 | .withPriority(stat.getPriority()) | 169 | .withPriority(stat.getPriority()) |
170 | .makeTemporary(stat.getIdleTimeout()) | 170 | .makeTemporary(stat.getIdleTimeout()) |
171 | - .withCookie(stat.getCookie().getValue()) | 171 | + .withCookie(stat.getCookie().getValue()); |
172 | - .forTable(stat.getTableId().getValue()); | 172 | + if (stat.getVersion() != OFVersion.OF_10) { |
173 | + builder.forTable(stat.getTableId().getValue()); | ||
174 | + } | ||
173 | 175 | ||
174 | return new DefaultFlowEntry(builder.build(), FlowEntryState.ADDED, | 176 | return new DefaultFlowEntry(builder.build(), FlowEntryState.ADDED, |
175 | stat.getDurationSec(), | 177 | stat.getDurationSec(), | ... | ... |
-
Please register or login to post a comment