blob: 1c13ef0e9dc8a6aa5950dd3b584f20708ff18187 [file] [log] [blame]
Thomas Vachuska83e090e2014-10-22 14:25:35 -07001/*
jcc3d4e14a2015-04-21 11:32:05 +08002 * Copyright 2014 Open Networking Laboratory
Thomas Vachuska83e090e2014-10-22 14:25:35 -07003 *
Thomas Vachuska4f1a60c2014-10-28 13:39:07 -07004 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
Thomas Vachuska83e090e2014-10-22 14:25:35 -07007 *
Thomas Vachuska4f1a60c2014-10-28 13:39:07 -07008 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
Thomas Vachuska83e090e2014-10-22 14:25:35 -070015 */
Brian O'Connorabafb502014-12-02 22:26:20 -080016package org.onosproject.net.flow;
alshabib7b2748f2014-09-16 20:21:11 -070017
jcc3d4e14a2015-04-21 11:32:05 +080018import static com.google.common.base.MoreObjects.toStringHelper;
19import static com.google.common.base.Preconditions.checkArgument;
20import static com.google.common.base.Preconditions.checkNotNull;
21
22import java.util.Objects;
23
Brian O'Connorabafb502014-12-02 22:26:20 -080024import org.onosproject.core.ApplicationId;
25import org.onosproject.core.DefaultGroupId;
26import org.onosproject.core.GroupId;
27import org.onosproject.net.DeviceId;
alshabib7b2748f2014-09-16 20:21:11 -070028
29public class DefaultFlowRule implements FlowRule {
30
Ayaka Koshibed4e53e12014-09-18 14:24:55 -070031 private final DeviceId deviceId;
32 private final int priority;
alshabib7b2748f2014-09-16 20:21:11 -070033 private final TrafficSelector selector;
34 private final TrafficTreatment treatment;
Ayaka Koshibed4e53e12014-09-18 14:24:55 -070035 private final long created;
36
alshabib219ebaa2014-09-22 15:41:24 -070037 private final FlowId id;
Ayaka Koshibed4e53e12014-09-18 14:24:55 -070038
alshabibdb774072015-04-20 13:13:51 -070039 private final Short appId;
alshabiba68eb962014-09-24 20:34:13 -070040
alshabibba5ac482014-10-02 17:15:20 -070041 private final int timeout;
Jonathan Hartbc4a7932014-10-21 11:46:00 -070042 private final boolean permanent;
Sho SHIMIZU75a5bd92014-11-25 11:22:56 -080043 private final GroupId groupId;
alshabib6eb438a2014-10-01 16:39:37 -070044
alshabibdb774072015-04-20 13:13:51 -070045 private final Integer tableId;
jcc3d4e14a2015-04-21 11:32:05 +080046 private final FlowRuleExtPayLoad payLoad;
alshabib1c319ff2014-10-04 20:29:09 -070047
alshabibdb774072015-04-20 13:13:51 -070048 @Deprecated
alshabib97044902014-09-18 14:52:16 -070049 public DefaultFlowRule(DeviceId deviceId, TrafficSelector selector,
jcc3d4e14a2015-04-21 11:32:05 +080050 TrafficTreatment treatment, int priority,
51 long flowId, int timeout, boolean permanent) {
alshabib6b5cfec2014-09-18 17:42:18 -070052 this.deviceId = deviceId;
53 this.priority = priority;
54 this.selector = selector;
55 this.treatment = treatment;
alshabib1c319ff2014-10-04 20:29:09 -070056 this.timeout = timeout;
Jonathan Hartbc4a7932014-10-21 11:46:00 -070057 this.permanent = permanent;
alshabib1c319ff2014-10-04 20:29:09 -070058 this.created = System.currentTimeMillis();
59
alshabib92c65ad2014-10-08 21:56:05 -070060 this.appId = (short) (flowId >>> 48);
Sho SHIMIZU75a5bd92014-11-25 11:22:56 -080061 this.groupId = new DefaultGroupId((short) ((flowId >>> 32) & 0xFFFF));
alshabib6b5cfec2014-09-18 17:42:18 -070062 this.id = FlowId.valueOf(flowId);
alshabibdb774072015-04-20 13:13:51 -070063 this.tableId = 0;
jcc3d4e14a2015-04-21 11:32:05 +080064 this.payLoad = null;
alshabib97044902014-09-18 14:52:16 -070065 }
66
alshabibdb774072015-04-20 13:13:51 -070067 @Deprecated
alshabiba7f7ca82014-09-22 11:41:23 -070068 public DefaultFlowRule(DeviceId deviceId, TrafficSelector selector,
jcc3d4e14a2015-04-21 11:32:05 +080069 TrafficTreatment treatment, int priority,
70 long flowId, int timeout, boolean permanent,
71 Type tableType) {
Saurav Dasfa2fa932015-03-03 11:29:48 -080072 this.deviceId = deviceId;
73 this.priority = priority;
74 this.selector = selector;
75 this.treatment = treatment;
76 this.timeout = timeout;
77 this.permanent = permanent;
78 this.created = System.currentTimeMillis();
79
80 this.appId = (short) (flowId >>> 48);
81 this.groupId = new DefaultGroupId((short) ((flowId >>> 32) & 0xFFFF));
82 this.id = FlowId.valueOf(flowId);
alshabib08d98982015-04-21 16:25:50 -070083 this.tableId = tableType.ordinal();
alshabibdb774072015-04-20 13:13:51 -070084
jcc3d4e14a2015-04-21 11:32:05 +080085 this.payLoad = null;
Saurav Dasfa2fa932015-03-03 11:29:48 -080086 }
87
alshabibdb774072015-04-20 13:13:51 -070088 @Deprecated
Saurav Dasfa2fa932015-03-03 11:29:48 -080089 public DefaultFlowRule(DeviceId deviceId, TrafficSelector selector,
jcc3d4e14a2015-04-21 11:32:05 +080090 TrafficTreatment treatment, int priority,
91 ApplicationId appId, int timeout, boolean permanent) {
92 this(deviceId, selector, treatment, priority, appId,
93 new DefaultGroupId(0), timeout, permanent);
sangho11c30ac2015-01-22 14:30:55 -080094 }
95
alshabibdb774072015-04-20 13:13:51 -070096 @Deprecated
sangho11c30ac2015-01-22 14:30:55 -080097 public DefaultFlowRule(DeviceId deviceId, TrafficSelector selector,
jcc3d4e14a2015-04-21 11:32:05 +080098 TrafficTreatment treatment, int priority,
99 ApplicationId appId, int timeout, boolean permanent,
100 Type type) {
sangho11c30ac2015-01-22 14:30:55 -0800101
102 if (priority < FlowRule.MIN_PRIORITY) {
jcc3d4e14a2015-04-21 11:32:05 +0800103 throw new IllegalArgumentException("Priority cannot be less than "
104 + MIN_PRIORITY);
sangho11c30ac2015-01-22 14:30:55 -0800105 }
106
107 this.deviceId = deviceId;
108 this.priority = priority;
109 this.selector = selector;
110 this.treatment = treatment;
111 this.appId = appId.id();
112 this.groupId = new DefaultGroupId(0);
113 this.timeout = timeout;
114 this.permanent = permanent;
115 this.created = System.currentTimeMillis();
alshabib08d98982015-04-21 16:25:50 -0700116 this.tableId = type.ordinal();
sangho11c30ac2015-01-22 14:30:55 -0800117
jcc3d4e14a2015-04-21 11:32:05 +0800118 this.payLoad = null;
sangho11c30ac2015-01-22 14:30:55 -0800119 /*
jcc3d4e14a2015-04-21 11:32:05 +0800120 * id consists of the following. | appId (16 bits) | groupId (16 bits) |
121 * flowId (32 bits) |
sangho11c30ac2015-01-22 14:30:55 -0800122 */
jcc3d4e14a2015-04-21 11:32:05 +0800123 this.id = FlowId.valueOf((((long) this.appId) << 48)
124 | (((long) this.groupId.id()) << 32)
sangho11c30ac2015-01-22 14:30:55 -0800125 | (this.hash() & 0xffffffffL));
126
Sho SHIMIZU75a5bd92014-11-25 11:22:56 -0800127 }
128
alshabibdb774072015-04-20 13:13:51 -0700129 @Deprecated
alshabib28204e52014-11-12 18:29:45 -0800130 public DefaultFlowRule(DeviceId deviceId, TrafficSelector selector,
jcc3d4e14a2015-04-21 11:32:05 +0800131 TrafficTreatment treatment, int priority,
132 ApplicationId appId, GroupId groupId, int timeout,
133 boolean permanent) {
alshabiba7f7ca82014-09-22 11:41:23 -0700134
alshabib1c319ff2014-10-04 20:29:09 -0700135 if (priority < FlowRule.MIN_PRIORITY) {
jcc3d4e14a2015-04-21 11:32:05 +0800136 throw new IllegalArgumentException("Priority cannot be less than "
137 + MIN_PRIORITY);
alshabiba0e04982014-10-03 13:03:19 -0700138 }
alshabib1c319ff2014-10-04 20:29:09 -0700139
alshabib219ebaa2014-09-22 15:41:24 -0700140 this.deviceId = deviceId;
141 this.priority = priority;
142 this.selector = selector;
Ray Milkey1e207112014-11-11 10:38:00 -0800143 this.treatment = treatment;
alshabib92c65ad2014-10-08 21:56:05 -0700144 this.appId = appId.id();
alshabib28204e52014-11-12 18:29:45 -0800145 this.groupId = groupId;
alshabibba5ac482014-10-02 17:15:20 -0700146 this.timeout = timeout;
Jonathan Hartbc4a7932014-10-21 11:46:00 -0700147 this.permanent = permanent;
alshabib1c319ff2014-10-04 20:29:09 -0700148 this.created = System.currentTimeMillis();
alshabibdb774072015-04-20 13:13:51 -0700149 this.tableId = 0;
jcc3d4e14a2015-04-21 11:32:05 +0800150 this.payLoad = null;
alshabibba5ac482014-10-02 17:15:20 -0700151
alshabib28204e52014-11-12 18:29:45 -0800152 /*
jcc3d4e14a2015-04-21 11:32:05 +0800153 * id consists of the following. | appId (16 bits) | groupId (16 bits) |
154 * flowId (32 bits) |
alshabib28204e52014-11-12 18:29:45 -0800155 */
jcc3d4e14a2015-04-21 11:32:05 +0800156 this.id = FlowId.valueOf((((long) this.appId) << 48)
157 | (((long) this.groupId.id()) << 32)
Sho SHIMIZU75a5bd92014-11-25 11:22:56 -0800158 | (this.hash() & 0xffffffffL));
alshabib219ebaa2014-09-22 15:41:24 -0700159 }
160
alshabib1c319ff2014-10-04 20:29:09 -0700161 public DefaultFlowRule(FlowRule rule) {
162 this.deviceId = rule.deviceId();
163 this.priority = rule.priority();
164 this.selector = rule.selector();
165 this.treatment = rule.treatment();
166 this.appId = rule.appId();
alshabib28204e52014-11-12 18:29:45 -0800167 this.groupId = rule.groupId();
alshabib1c319ff2014-10-04 20:29:09 -0700168 this.id = rule.id();
169 this.timeout = rule.timeout();
Jonathan Hartbc4a7932014-10-21 11:46:00 -0700170 this.permanent = rule.isPermanent();
alshabib219ebaa2014-09-22 15:41:24 -0700171 this.created = System.currentTimeMillis();
alshabibdb774072015-04-20 13:13:51 -0700172 this.tableId = rule.tableId();
jcc3d4e14a2015-04-21 11:32:05 +0800173 this.payLoad = rule.payLoad();
alshabibdb774072015-04-20 13:13:51 -0700174 }
175
176 private DefaultFlowRule(DeviceId deviceId, TrafficSelector selector,
177 TrafficTreatment treatment, Integer priority,
178 FlowId flowId, Boolean permanent, Integer timeout,
179 Integer tableId) {
180
181 this.deviceId = deviceId;
182 this.selector = selector;
183 this.treatment = treatment;
184 this.priority = priority;
185 this.appId = (short) (flowId.value() >>> 48);
186 this.id = flowId;
187 this.permanent = permanent;
188 this.timeout = timeout;
189 this.tableId = tableId;
190 this.created = System.currentTimeMillis();
191
192
193 //FIXME: fields below will be removed.
194 this.groupId = null;
jcc3d4e14a2015-04-21 11:32:05 +0800195 this.payLoad = null;
196 }
alshabibdb774072015-04-20 13:13:51 -0700197
jcc3d4e14a2015-04-21 11:32:05 +0800198 /**
199 * Support for the third party flow rule. Creates a flow rule of flow table.
200 *
201 * @param deviceId the identity of the device where this rule applies
202 * @param selector the traffic selector that identifies what traffic this
203 * rule
204 * @param treatment the traffic treatment that applies to selected traffic
205 * @param priority the flow rule priority given in natural order
206 * @param appId the application id of this flow
207 * @param timeout the timeout for this flow requested by an application
208 * @param permanent whether the flow is permanent i.e. does not time out
209 * @param payLoad 3rd-party origin private flow
210 */
211 public DefaultFlowRule(DeviceId deviceId, TrafficSelector selector,
212 TrafficTreatment treatment, int priority,
213 ApplicationId appId, int timeout, boolean permanent,
214 FlowRuleExtPayLoad payLoad) {
alshabib1c319ff2014-10-04 20:29:09 -0700215
jcc3d4e14a2015-04-21 11:32:05 +0800216 if (priority < FlowRule.MIN_PRIORITY) {
217 throw new IllegalArgumentException("Priority cannot be less than "
218 + MIN_PRIORITY);
219 }
220
221 this.deviceId = deviceId;
222 this.priority = priority;
223 this.selector = selector;
224 this.treatment = treatment;
225 this.appId = appId.id();
226 this.groupId = new DefaultGroupId(0);
227 this.timeout = timeout;
228 this.permanent = permanent;
229 this.tableId = 0;
230 this.created = System.currentTimeMillis();
231 this.payLoad = payLoad;
232
233 /*
234 * id consists of the following. | appId (16 bits) | groupId (16 bits) |
235 * flowId (32 bits) |
236 */
237 this.id = FlowId.valueOf((((long) this.appId) << 48)
238 | (((long) this.groupId.id()) << 32)
239 | (this.hash() & 0xffffffffL));
240 }
241
242 /**
243 * Support for the third party flow rule. Creates a flow rule of group
244 * table.
245 *
246 * @param deviceId the identity of the device where this rule applies
247 * @param selector the traffic selector that identifies what traffic this
248 * rule
249 * @param treatment the traffic treatment that applies to selected traffic
250 * @param priority the flow rule priority given in natural order
251 * @param appId the application id of this flow
252 * @param groupId the group id of this flow
253 * @param timeout the timeout for this flow requested by an application
254 * @param permanent whether the flow is permanent i.e. does not time out
255 * @param payLoad 3rd-party origin private flow
256 *
257 */
258 public DefaultFlowRule(DeviceId deviceId, TrafficSelector selector,
259 TrafficTreatment treatment, int priority,
260 ApplicationId appId, GroupId groupId, int timeout,
261 boolean permanent, FlowRuleExtPayLoad payLoad) {
262
263 if (priority < FlowRule.MIN_PRIORITY) {
264 throw new IllegalArgumentException("Priority cannot be less than "
265 + MIN_PRIORITY);
266 }
267
268 this.deviceId = deviceId;
269 this.priority = priority;
270 this.selector = selector;
271 this.treatment = treatment;
272 this.appId = appId.id();
273 this.groupId = groupId;
274 this.timeout = timeout;
275 this.permanent = permanent;
276 this.created = System.currentTimeMillis();
277 this.tableId = 0;
278 this.payLoad = payLoad;
279
280 /*
281 * id consists of the following. | appId (16 bits) | groupId (16 bits) |
282 * flowId (32 bits) |
283 */
284 this.id = FlowId.valueOf((((long) this.appId) << 48)
285 | (((long) this.groupId.id()) << 32)
286 | (this.hash() & 0xffffffffL));
alshabiba7f7ca82014-09-22 11:41:23 -0700287 }
288
Ayaka Koshibed4e53e12014-09-18 14:24:55 -0700289 @Override
290 public FlowId id() {
291 return id;
alshabib7b2748f2014-09-16 20:21:11 -0700292 }
293
294 @Override
alshabib92c65ad2014-10-08 21:56:05 -0700295 public short appId() {
alshabiba68eb962014-09-24 20:34:13 -0700296 return appId;
297 }
298
299 @Override
Sho SHIMIZU75a5bd92014-11-25 11:22:56 -0800300 public GroupId groupId() {
alshabib28204e52014-11-12 18:29:45 -0800301 return groupId;
302 }
303
304 @Override
alshabib7b2748f2014-09-16 20:21:11 -0700305 public int priority() {
Ayaka Koshibed4e53e12014-09-18 14:24:55 -0700306 return priority;
alshabib7b2748f2014-09-16 20:21:11 -0700307 }
308
309 @Override
310 public DeviceId deviceId() {
311 return deviceId;
312 }
313
314 @Override
315 public TrafficSelector selector() {
316 return selector;
317 }
318
319 @Override
320 public TrafficTreatment treatment() {
321 return treatment;
322 }
323
alshabiba7f7ca82014-09-22 11:41:23 -0700324 @Override
Ayaka Koshibed4e53e12014-09-18 14:24:55 -0700325 /*
326 * The priority and statistics can change on a given treatment and selector
327 *
328 * (non-Javadoc)
jcc3d4e14a2015-04-21 11:32:05 +0800329 *
Ayaka Koshibed4e53e12014-09-18 14:24:55 -0700330 * @see java.lang.Object#equals(java.lang.Object)
331 */
Ayaka Koshibe08eabaa2014-09-17 14:59:25 -0700332 public int hashCode() {
jcc3d4e14a2015-04-21 11:32:05 +0800333 return Objects.hash(deviceId, selector, priority, tableId, payLoad);
alshabiba68eb962014-09-24 20:34:13 -0700334 }
335
336 public int hash() {
jcc3d4e14a2015-04-21 11:32:05 +0800337 return Objects.hash(deviceId, selector, treatment, tableId, payLoad);
Ayaka Koshibe08eabaa2014-09-17 14:59:25 -0700338 }
339
340 @Override
341 /*
342 * The priority and statistics can change on a given treatment and selector
343 *
344 * (non-Javadoc)
jcc3d4e14a2015-04-21 11:32:05 +0800345 *
Ayaka Koshibe08eabaa2014-09-17 14:59:25 -0700346 * @see java.lang.Object#equals(java.lang.Object)
347 */
348 public boolean equals(Object obj) {
alshabiba7f7ca82014-09-22 11:41:23 -0700349 if (this == obj) {
Ayaka Koshibeb55524f2014-09-18 09:59:24 -0700350 return true;
Ayaka Koshibe08eabaa2014-09-17 14:59:25 -0700351 }
alshabib54ce5892014-09-23 17:50:51 -0700352 if (obj instanceof DefaultFlowRule) {
alshabib219ebaa2014-09-22 15:41:24 -0700353 DefaultFlowRule that = (DefaultFlowRule) obj;
354 return Objects.equals(deviceId, that.deviceId) &&
alshabibba5ac482014-10-02 17:15:20 -0700355 Objects.equals(priority, that.priority) &&
Saurav Dascbe6de32015-03-01 18:30:46 -0800356 Objects.equals(selector, that.selector) &&
jcc3d4e14a2015-04-21 11:32:05 +0800357 Objects.equals(tableId, that.tableId)
358 && Objects.equals(payLoad, that.payLoad);
alshabiba7f7ca82014-09-22 11:41:23 -0700359 }
Ayaka Koshibeb55524f2014-09-18 09:59:24 -0700360 return false;
Ayaka Koshibe08eabaa2014-09-17 14:59:25 -0700361 }
362
Ayaka Koshibed4e53e12014-09-18 14:24:55 -0700363 @Override
364 public String toString() {
365 return toStringHelper(this)
alshabib8ca53902014-10-07 13:11:17 -0700366 .add("id", Long.toHexString(id.value()))
Ayaka Koshibed4e53e12014-09-18 14:24:55 -0700367 .add("deviceId", deviceId)
368 .add("priority", priority)
alshabibba5ac482014-10-02 17:15:20 -0700369 .add("selector", selector.criteria())
Jonathan Hart8ef6d3b2015-03-08 21:21:27 -0700370 .add("treatment", treatment == null ? "N/A" : treatment.allInstructions())
alshabib08d98982015-04-21 16:25:50 -0700371 .add("tableId", tableId)
Ayaka Koshibed4e53e12014-09-18 14:24:55 -0700372 .add("created", created)
jcc3d4e14a2015-04-21 11:32:05 +0800373 .add("payLoad", payLoad).toString()
Ayaka Koshibed4e53e12014-09-18 14:24:55 -0700374 .toString();
375 }
Ayaka Koshibe08eabaa2014-09-17 14:59:25 -0700376
alshabib6eb438a2014-10-01 16:39:37 -0700377 @Override
alshabibba5ac482014-10-02 17:15:20 -0700378 public int timeout() {
alshabib58747a62014-10-07 11:05:30 -0700379 return timeout;
alshabib6eb438a2014-10-01 16:39:37 -0700380 }
381
Jonathan Hartbc4a7932014-10-21 11:46:00 -0700382 @Override
383 public boolean isPermanent() {
384 return permanent;
385 }
386
sangho11c30ac2015-01-22 14:30:55 -0800387 @Override
alshabibdb774072015-04-20 13:13:51 -0700388 public int tableId() {
389 return tableId;
390 }
391
392 public static Builder builder() {
393 return new Builder();
394 }
395
alshabibd17abc22015-04-21 18:26:35 -0700396 public static final class Builder implements FlowRule.Builder {
alshabibdb774072015-04-20 13:13:51 -0700397
398 private FlowId flowId;
399 private Integer priority;
400 private DeviceId deviceId;
401 private Integer tableId = 0;
402 private TrafficSelector selector;
403 private TrafficTreatment treatment;
404 private Integer timeout;
405 private Boolean permanent;
406
407 @Override
408 public FlowRule.Builder withCookie(long cookie) {
409 this.flowId = FlowId.valueOf(cookie);
410 return this;
411 }
412
413 @Override
414 public FlowRule.Builder fromApp(ApplicationId appId) {
415 this.flowId = computeFlowId(appId);
416 return this;
417 }
418
419 @Override
420 public FlowRule.Builder withPriority(int priority) {
421 this.priority = priority;
422 return this;
423 }
424
425 @Override
426 public FlowRule.Builder forDevice(DeviceId deviceId) {
427 this.deviceId = deviceId;
428 return this;
429 }
430
431 @Override
432 public FlowRule.Builder forTable(int tableId) {
433 this.tableId = tableId;
434 return this;
435 }
436
437 @Override
438 public FlowRule.Builder withSelector(TrafficSelector selector) {
439 this.selector = selector;
440 return this;
441 }
442
443 @Override
444 public FlowRule.Builder withTreatment(TrafficTreatment treatment) {
445 this.treatment = treatment;
446 return this;
447 }
448
449 @Override
450 public FlowRule.Builder makePermanent() {
451 this.timeout = 0;
452 this.permanent = true;
453 return this;
454 }
455
456 @Override
457 public FlowRule.Builder makeTemporary(int timeout) {
458 this.permanent = false;
459 this.timeout = timeout;
460 return this;
461 }
462
463 @Override
464 public FlowRule build() {
465 checkNotNull(flowId != null, "Either an application" +
466 " id or a cookie must be supplied");
467 checkNotNull(selector != null, "Traffic selector cannot be null");
468 checkNotNull(timeout != null || permanent != null, "Must either have " +
469 "a timeout or be permanent");
470 checkNotNull(deviceId != null, "Must refer to a device");
471 checkNotNull(priority != null, "Priority cannot be null");
Saurav Das3ea46622015-04-22 14:01:34 -0700472 checkArgument(priority >= MIN_PRIORITY, "Priority cannot be less than " +
alshabibdb774072015-04-20 13:13:51 -0700473 MIN_PRIORITY);
474
475 return new DefaultFlowRule(deviceId, selector, treatment, priority,
476 flowId, permanent, timeout, tableId);
477 }
478
479 private FlowId computeFlowId(ApplicationId appId) {
480 return FlowId.valueOf((((long) appId.id()) << 48)
481 | (hash() & 0xffffffffL));
482 }
483
484 private int hash() {
485 return Objects.hash(deviceId, selector, treatment, tableId);
486 }
487
488 }
489
jcc3d4e14a2015-04-21 11:32:05 +0800490 @Override
491 public FlowRuleExtPayLoad payLoad() {
492 return payLoad;
493 }
494
alshabib7b2748f2014-09-16 20:21:11 -0700495}