blob: 16a654f2c105f575a849f0a04bfe4acb508d265a [file] [log] [blame]
Brian O'Connor8c166a72013-11-14 18:41:48 -08001package net.onrc.onos.ofcontroller.flowprogrammer;
Brian O'Connora8e49802013-10-30 20:49:59 -07002
3import java.io.IOException;
4import java.util.ArrayList;
Brian O'Connora8e49802013-10-30 20:49:59 -07005import java.util.HashMap;
6import java.util.HashSet;
7import java.util.List;
8import java.util.Map;
9import java.util.Set;
Naoki Shiota2bdda572013-12-09 15:05:21 -080010import java.util.concurrent.Callable;
Brian O'Connora8e49802013-10-30 20:49:59 -070011import java.util.concurrent.ExecutionException;
Brian O'Connora8e49802013-10-30 20:49:59 -070012import java.util.concurrent.Future;
Naoki Shiota2bdda572013-12-09 15:05:21 -080013import java.util.concurrent.FutureTask;
Brian O'Connora8e49802013-10-30 20:49:59 -070014
Brian O'Connor0d6ba512013-11-05 15:17:44 -080015import org.openflow.protocol.OFFlowMod;
Brian O'Connora8e49802013-10-30 20:49:59 -070016import org.openflow.protocol.OFMatch;
Brian O'Connor0d6ba512013-11-05 15:17:44 -080017import org.openflow.protocol.OFPort;
Brian O'Connora8e49802013-10-30 20:49:59 -070018import org.openflow.protocol.OFStatisticsRequest;
19import org.openflow.protocol.statistics.OFFlowStatisticsReply;
20import org.openflow.protocol.statistics.OFFlowStatisticsRequest;
21import org.openflow.protocol.statistics.OFStatistics;
22import org.openflow.protocol.statistics.OFStatisticsType;
23import org.slf4j.Logger;
24import org.slf4j.LoggerFactory;
25
Brian O'Connora8e49802013-10-30 20:49:59 -070026import net.floodlightcontroller.core.IOFSwitch;
yoshied0a6eb2013-12-05 16:54:27 -080027import net.onrc.onos.graph.DBOperation;
28import net.onrc.onos.graph.GraphDBManager;
Brian O'Connora8e49802013-10-30 20:49:59 -070029import net.onrc.onos.ofcontroller.core.INetMapTopologyObjects.IFlowEntry;
30import net.onrc.onos.ofcontroller.core.INetMapTopologyObjects.ISwitchObject;
Naoki Shiota8df97bc2014-03-13 18:42:23 -070031import net.onrc.onos.ofcontroller.flowprogrammer.IFlowPusherService.MsgPriority;
Brian O'Connora8e49802013-10-30 20:49:59 -070032import net.onrc.onos.ofcontroller.util.Dpid;
Pavlin Radoslavov6bfaea62013-12-03 14:55:57 -080033import net.onrc.onos.ofcontroller.util.FlowEntry;
Brian O'Connora8e49802013-10-30 20:49:59 -070034import net.onrc.onos.ofcontroller.util.FlowEntryId;
35
Naoki Shiotae3199732013-11-25 16:14:43 -080036/**
Naoki Shiotab485d412013-11-26 12:04:19 -080037 * FlowSynchronizer is an implementation of FlowSyncService.
Pavlin Radoslavov07fb9972013-12-02 16:20:24 -080038 * In addition to IFlowSyncService, FlowSynchronizer periodically reads flow
39 * tables from switches and compare them with GraphDB to drop unnecessary
40 * flows and/or to install missing flows.
Naoki Shiotae3199732013-11-25 16:14:43 -080041 * @author Brian
42 *
43 */
Brian O'Connorea1efbe2013-11-25 22:57:43 -080044public class FlowSynchronizer implements IFlowSyncService {
Brian O'Connora8e49802013-10-30 20:49:59 -070045
Brian O'Connorea1efbe2013-11-25 22:57:43 -080046 private static Logger log = LoggerFactory.getLogger(FlowSynchronizer.class);
Brian O'Connore46492e2013-11-14 21:11:50 -080047
yoshied0a6eb2013-12-05 16:54:27 -080048 private DBOperation dbHandler;
Brian O'Connorea1efbe2013-11-25 22:57:43 -080049 protected IFlowPusherService pusher;
Naoki Shiota2bdda572013-12-09 15:05:21 -080050 private Map<IOFSwitch, FutureTask<SyncResult>> switchThreads;
Brian O'Connore46492e2013-11-14 21:11:50 -080051
52 public FlowSynchronizer() {
Yoshi Muroi5804ce92014-02-08 03:58:04 -080053 dbHandler = GraphDBManager.getDBOperation();
Naoki Shiota2bdda572013-12-09 15:05:21 -080054 switchThreads = new HashMap<IOFSwitch, FutureTask<SyncResult>>();
Brian O'Connore46492e2013-11-14 21:11:50 -080055 }
56
Brian O'Connorea1efbe2013-11-25 22:57:43 -080057 @Override
Naoki Shiota2bdda572013-12-09 15:05:21 -080058 public Future<SyncResult> synchronize(IOFSwitch sw) {
Pavlin Radoslavovf8c78552013-11-26 10:56:59 -080059 Synchronizer sync = new Synchronizer(sw);
Naoki Shiota2bdda572013-12-09 15:05:21 -080060 FutureTask<SyncResult> task = new FutureTask<SyncResult>(sync);
61 switchThreads.put(sw, task);
62 task.run();
63 return task;
Brian O'Connore46492e2013-11-14 21:11:50 -080064 }
Brian O'Connorea1efbe2013-11-25 22:57:43 -080065
Brian O'Connore46492e2013-11-14 21:11:50 -080066 @Override
Brian O'Connorea1efbe2013-11-25 22:57:43 -080067 public void interrupt(IOFSwitch sw) {
Naoki Shiota2bdda572013-12-09 15:05:21 -080068 FutureTask<SyncResult> t = switchThreads.remove(sw);
Brian O'Connore46492e2013-11-14 21:11:50 -080069 if(t != null) {
Naoki Shiota2bdda572013-12-09 15:05:21 -080070 t.cancel(true);
Brian O'Connorea1efbe2013-11-25 22:57:43 -080071 }
Brian O'Connore46492e2013-11-14 21:11:50 -080072 }
73
Naoki Shiotab485d412013-11-26 12:04:19 -080074 /**
75 * Initialize Synchronizer.
76 * @param pusherService FlowPusherService used for sending messages.
77 */
Brian O'Connorea1efbe2013-11-25 22:57:43 -080078 public void init(IFlowPusherService pusherService) {
79 pusher = pusherService;
Brian O'Connore46492e2013-11-14 21:11:50 -080080 }
81
Naoki Shiotae3199732013-11-25 16:14:43 -080082 /**
83 * Synchronizer represents main thread of synchronization.
84 * @author Brian
85 *
86 */
Naoki Shiota2bdda572013-12-09 15:05:21 -080087 protected class Synchronizer implements Callable<SyncResult> {
Brian O'Connora8e49802013-10-30 20:49:59 -070088 IOFSwitch sw;
89 ISwitchObject swObj;
Brian O'Connore46492e2013-11-14 21:11:50 -080090
Pavlin Radoslavovf8c78552013-11-26 10:56:59 -080091 public Synchronizer(IOFSwitch sw) {
Brian O'Connora8e49802013-10-30 20:49:59 -070092 this.sw = sw;
93 Dpid dpid = new Dpid(sw.getId());
94 this.swObj = dbHandler.searchSwitch(dpid.toString());
95 }
Brian O'Connore46492e2013-11-14 21:11:50 -080096
Brian O'Connor321a5d32013-12-09 18:11:35 -080097 double graphIDTime, switchTime, compareTime, graphEntryTime, extractTime, pushTime, totalTime;
Brian O'Connora8e49802013-10-30 20:49:59 -070098 @Override
Naoki Shiota2bdda572013-12-09 15:05:21 -080099 public SyncResult call() {
Naoki Shiota8df97bc2014-03-13 18:42:23 -0700100 pusher.suspend(sw);
Naoki Shiota277dbd22014-03-20 19:06:48 -0700101 try {
102 long start = System.nanoTime();
103 Set<FlowEntryWrapper> graphEntries = getFlowEntriesFromGraph();
104 long step1 = System.nanoTime();
105 Set<FlowEntryWrapper> switchEntries = getFlowEntriesFromSwitch();
106 if (switchEntries == null) {
107 log.debug("getFlowEntriesFromSwitch() failed");
108 return null;
109 }
110 long step2 = System.nanoTime();
111 SyncResult result = compare(graphEntries, switchEntries);
112 long step3 = System.nanoTime();
113 graphIDTime = (step1 - start);
114 switchTime = (step2 - step1);
115 compareTime = (step3 - step2);
116 totalTime = (step3 - start);
117 outputTime();
118
119 return result;
120 } finally {
121 pusher.resume(sw);
Naoki Shiotadf051d42014-01-20 16:12:41 -0800122 }
Brian O'Connora8e49802013-10-30 20:49:59 -0700123 }
Brian O'Connor321a5d32013-12-09 18:11:35 -0800124
125 private void outputTime() {
126 double div = Math.pow(10, 6); //convert nanoseconds to ms
127 graphIDTime /= div;
128 switchTime /= div;
129 compareTime = (compareTime - graphEntryTime - extractTime - pushTime) / div;
130 graphEntryTime /= div;
131 extractTime /= div;
132 pushTime /= div;
Brian O'Connor8f7f8582013-12-11 15:48:07 -0800133 totalTime /= div;
Yuta HIGUCHI5302ddf2014-01-06 12:53:35 -0800134 log.debug("Sync time (ms):{},{},{},{},{},{},{}"
135 , graphIDTime
136 , switchTime
137 , compareTime
138 , graphEntryTime
139 , extractTime
140 , pushTime
141 , totalTime);
Brian O'Connora8e49802013-10-30 20:49:59 -0700142 }
Brian O'Connore46492e2013-11-14 21:11:50 -0800143
Naoki Shiotae3199732013-11-25 16:14:43 -0800144 /**
Pavlin Radoslavov07fb9972013-12-02 16:20:24 -0800145 * Compare flows entries in GraphDB and switch to pick up necessary
146 * messages.
Naoki Shiotae3199732013-11-25 16:14:43 -0800147 * After picking up, picked messages are added to FlowPusher.
148 * @param graphEntries Flow entries in GraphDB.
149 * @param switchEntries Flow entries in switch.
150 */
Naoki Shiota2bdda572013-12-09 15:05:21 -0800151 private SyncResult compare(Set<FlowEntryWrapper> graphEntries, Set<FlowEntryWrapper> switchEntries) {
Brian O'Connor0d6ba512013-11-05 15:17:44 -0800152 int added = 0, removed = 0, skipped = 0;
153 for(FlowEntryWrapper entry : switchEntries) {
Brian O'Connore46492e2013-11-14 21:11:50 -0800154 if(graphEntries.contains(entry)) {
155 graphEntries.remove(entry);
156 skipped++;
157 }
158 else {
159 // remove flow entry from the switch
160 entry.removeFromSwitch(sw);
161 removed++;
162 }
Brian O'Connora8e49802013-10-30 20:49:59 -0700163 }
Brian O'Connor0d6ba512013-11-05 15:17:44 -0800164 for(FlowEntryWrapper entry : graphEntries) {
Brian O'Connore46492e2013-11-14 21:11:50 -0800165 // add flow entry to switch
166 entry.addToSwitch(sw);
Brian O'Connor321a5d32013-12-09 18:11:35 -0800167 graphEntryTime += entry.dbTime;
168 extractTime += entry.extractTime;
169 pushTime += entry.pushTime;
Brian O'Connor0d6ba512013-11-05 15:17:44 -0800170 added++;
Yuta HIGUCHI5302ddf2014-01-06 12:53:35 -0800171 }
172 log.debug("Flow entries added {}, " +
173 "Flow entries removed {}, " +
174 "Flow entries skipped {}"
175 , added
176 , removed
177 , skipped );
178
Naoki Shiota2bdda572013-12-09 15:05:21 -0800179 return new SyncResult(added, removed, skipped);
Brian O'Connora8e49802013-10-30 20:49:59 -0700180 }
Brian O'Connore46492e2013-11-14 21:11:50 -0800181
Naoki Shiotae3199732013-11-25 16:14:43 -0800182 /**
183 * Read GraphDB to get FlowEntries associated with a switch.
184 * @return set of FlowEntries
185 */
Brian O'Connor0d6ba512013-11-05 15:17:44 -0800186 private Set<FlowEntryWrapper> getFlowEntriesFromGraph() {
187 Set<FlowEntryWrapper> entries = new HashSet<FlowEntryWrapper>();
Brian O'Connora8e49802013-10-30 20:49:59 -0700188 for(IFlowEntry entry : swObj.getFlowEntries()) {
Brian O'Connor0d6ba512013-11-05 15:17:44 -0800189 FlowEntryWrapper fe = new FlowEntryWrapper(entry);
190 entries.add(fe);
Brian O'Connora8e49802013-10-30 20:49:59 -0700191 }
Brian O'Connor0d6ba512013-11-05 15:17:44 -0800192 return entries;
Brian O'Connora8e49802013-10-30 20:49:59 -0700193 }
Brian O'Connore46492e2013-11-14 21:11:50 -0800194
Naoki Shiotae3199732013-11-25 16:14:43 -0800195 /**
196 * Read flow table from switch and derive FlowEntries from table.
197 * @return set of FlowEntries
198 */
Brian O'Connor0d6ba512013-11-05 15:17:44 -0800199 private Set<FlowEntryWrapper> getFlowEntriesFromSwitch() {
Brian O'Connora8e49802013-10-30 20:49:59 -0700200
201 int lengthU = 0;
202 OFMatch match = new OFMatch();
203 match.setWildcards(OFMatch.OFPFW_ALL);
204
205 OFFlowStatisticsRequest stat = new OFFlowStatisticsRequest();
206 stat.setOutPort((short) 0xffff); //TODO: OFPort.OFPP_NONE
207 stat.setTableId((byte) 0xff); // TODO: fix this with enum (ALL TABLES)
208 stat.setMatch(match);
209 List<OFStatistics> stats = new ArrayList<OFStatistics>();
210 stats.add(stat);
211 lengthU += stat.getLength();
212
213 OFStatisticsRequest req = new OFStatisticsRequest();
214 req.setStatisticType(OFStatisticsType.FLOW);
215 req.setStatistics(stats);
216 lengthU += req.getLengthU();
217 req.setLengthU(lengthU);
218
219 List<OFStatistics> entries = null;
220 try {
221 Future<List<OFStatistics>> dfuture = sw.getStatistics(req);
222 entries = dfuture.get();
223 } catch (IOException e) {
224 // TODO Auto-generated catch block
225 e.printStackTrace();
Naoki Shiotadf051d42014-01-20 16:12:41 -0800226 return null;
Brian O'Connora8e49802013-10-30 20:49:59 -0700227 } catch (InterruptedException e) {
228 // TODO Auto-generated catch block
229 e.printStackTrace();
Naoki Shiotadf051d42014-01-20 16:12:41 -0800230 return null;
Brian O'Connora8e49802013-10-30 20:49:59 -0700231 } catch (ExecutionException e) {
232 // TODO Auto-generated catch block
233 e.printStackTrace();
Naoki Shiotadf051d42014-01-20 16:12:41 -0800234 return null;
Brian O'Connora8e49802013-10-30 20:49:59 -0700235 }
Brian O'Connore46492e2013-11-14 21:11:50 -0800236
Brian O'Connor0d6ba512013-11-05 15:17:44 -0800237 Set<FlowEntryWrapper> results = new HashSet<FlowEntryWrapper>();
Brian O'Connora8e49802013-10-30 20:49:59 -0700238 for(OFStatistics result : entries){
Brian O'Connora8e49802013-10-30 20:49:59 -0700239 OFFlowStatisticsReply entry = (OFFlowStatisticsReply) result;
Brian O'Connor0d6ba512013-11-05 15:17:44 -0800240 FlowEntryWrapper fe = new FlowEntryWrapper(entry);
241 results.add(fe);
Brian O'Connora8e49802013-10-30 20:49:59 -0700242 }
Brian O'Connor0d6ba512013-11-05 15:17:44 -0800243 return results;
Brian O'Connora8e49802013-10-30 20:49:59 -0700244 }
Brian O'Connor8c166a72013-11-14 18:41:48 -0800245
Brian O'Connora8e49802013-10-30 20:49:59 -0700246 }
247
Naoki Shiotae3199732013-11-25 16:14:43 -0800248 /**
Pavlin Radoslavov07fb9972013-12-02 16:20:24 -0800249 * FlowEntryWrapper represents abstract FlowEntry which is embodied
250 * by FlowEntryId (from GraphDB) or OFFlowStatisticsReply (from switch).
Naoki Shiotae3199732013-11-25 16:14:43 -0800251 * @author Brian
252 *
253 */
Brian O'Connore46492e2013-11-14 21:11:50 -0800254 class FlowEntryWrapper {
Naoki Shiotaf74d5f32014-01-09 21:29:38 -0800255 FlowEntryId flowEntryId;
256 IFlowEntry iFlowEntry;
257 OFFlowStatisticsReply statisticsReply;
258
Brian O'Connore46492e2013-11-14 21:11:50 -0800259
260 public FlowEntryWrapper(IFlowEntry entry) {
Pavlin Radoslavov07fb9972013-12-02 16:20:24 -0800261 flowEntryId = new FlowEntryId(entry.getFlowEntryId());
Naoki Shiotaf74d5f32014-01-09 21:29:38 -0800262 iFlowEntry = entry;
263 }
Brian O'Connora8e49802013-10-30 20:49:59 -0700264
Brian O'Connore46492e2013-11-14 21:11:50 -0800265 public FlowEntryWrapper(OFFlowStatisticsReply entry) {
Pavlin Radoslavov07fb9972013-12-02 16:20:24 -0800266 flowEntryId = new FlowEntryId(entry.getCookie());
Brian O'Connore46492e2013-11-14 21:11:50 -0800267 statisticsReply = entry;
Brian O'Connore46492e2013-11-14 21:11:50 -0800268 }
Brian O'Connora8e49802013-10-30 20:49:59 -0700269
Naoki Shiotae3199732013-11-25 16:14:43 -0800270 /**
271 * Install this FlowEntry to a switch via FlowPusher.
Naoki Shiotab485d412013-11-26 12:04:19 -0800272 * @param sw Switch to which flow will be installed.
Naoki Shiotae3199732013-11-25 16:14:43 -0800273 */
Brian O'Connor321a5d32013-12-09 18:11:35 -0800274 double dbTime, extractTime, pushTime;
Brian O'Connore46492e2013-11-14 21:11:50 -0800275 public void addToSwitch(IOFSwitch sw) {
Pavlin Radoslavov07fb9972013-12-02 16:20:24 -0800276 if (statisticsReply != null) {
Yuta HIGUCHI5302ddf2014-01-06 12:53:35 -0800277 log.error("Error adding existing flow entry {} to sw {}",
Brian O'Connore46492e2013-11-14 21:11:50 -0800278 statisticsReply.getCookie(), sw.getId());
Pavlin Radoslavov07fb9972013-12-02 16:20:24 -0800279 return;
Brian O'Connore46492e2013-11-14 21:11:50 -0800280 }
Pavlin Radoslavov07fb9972013-12-02 16:20:24 -0800281
Brian O'Connor321a5d32013-12-09 18:11:35 -0800282 double startDB = System.nanoTime();
Pavlin Radoslavov07fb9972013-12-02 16:20:24 -0800283 // Get the Flow Entry state from the Network Graph
Pavlin Radoslavov07fb9972013-12-02 16:20:24 -0800284 if (iFlowEntry == null) {
Naoki Shiotaf74d5f32014-01-09 21:29:38 -0800285 try {
286 iFlowEntry = dbHandler.searchFlowEntry(flowEntryId);
287 } catch (Exception e) {
288 log.error("Error finding flow entry {} in Network Graph",
289 flowEntryId);
290 return;
291 }
Pavlin Radoslavov07fb9972013-12-02 16:20:24 -0800292 }
Brian O'Connor321a5d32013-12-09 18:11:35 -0800293 dbTime = System.nanoTime() - startDB;
Pavlin Radoslavov07fb9972013-12-02 16:20:24 -0800294
Pavlin Radoslavov39f0f2e2014-03-20 12:04:57 -0700295 //
296 // TODO: The old FlowDatabaseOperation class is gone, so the code
297 //
298 /*
Brian O'Connor321a5d32013-12-09 18:11:35 -0800299 double startExtract = System.nanoTime();
Pavlin Radoslavov6bfaea62013-12-03 14:55:57 -0800300 FlowEntry flowEntry =
301 FlowDatabaseOperation.extractFlowEntry(iFlowEntry);
302 if (flowEntry == null) {
303 log.error("Cannot add flow entry {} to sw {} : flow entry cannot be extracted",
304 flowEntryId, sw.getId());
305 return;
306 }
Brian O'Connor321a5d32013-12-09 18:11:35 -0800307 extractTime = System.nanoTime() - startExtract;
Yuta HIGUCHI5302ddf2014-01-06 12:53:35 -0800308
Brian O'Connor321a5d32013-12-09 18:11:35 -0800309 double startPush = System.nanoTime();
Naoki Shiota8df97bc2014-03-13 18:42:23 -0700310 pusher.pushFlowEntry(sw, flowEntry, MsgPriority.HIGH);
Brian O'Connor321a5d32013-12-09 18:11:35 -0800311 pushTime = System.nanoTime() - startPush;
Pavlin Radoslavov39f0f2e2014-03-20 12:04:57 -0700312 */
Brian O'Connore46492e2013-11-14 21:11:50 -0800313 }
Yuta HIGUCHI5302ddf2014-01-06 12:53:35 -0800314
Naoki Shiotae3199732013-11-25 16:14:43 -0800315 /**
316 * Remove this FlowEntry from a switch via FlowPusher.
Naoki Shiotab485d412013-11-26 12:04:19 -0800317 * @param sw Switch from which flow will be removed.
Naoki Shiotae3199732013-11-25 16:14:43 -0800318 */
Pavlin Radoslavov07fb9972013-12-02 16:20:24 -0800319 public void removeFromSwitch(IOFSwitch sw) {
320 if (statisticsReply == null) {
Yuta HIGUCHI5302ddf2014-01-06 12:53:35 -0800321 log.error("Error removing non-existent flow entry {} from sw {}",
Pavlin Radoslavov07fb9972013-12-02 16:20:24 -0800322 flowEntryId, sw.getId());
323 return;
324 }
Brian O'Connora8e49802013-10-30 20:49:59 -0700325
Pavlin Radoslavov07fb9972013-12-02 16:20:24 -0800326 // Convert Statistics Reply to Flow Mod, then write it
327 OFFlowMod fm = new OFFlowMod();
328 fm.setCookie(statisticsReply.getCookie());
329 fm.setCommand(OFFlowMod.OFPFC_DELETE_STRICT);
330 fm.setLengthU(OFFlowMod.MINIMUM_LENGTH);
331 fm.setMatch(statisticsReply.getMatch());
332 fm.setPriority(statisticsReply.getPriority());
333 fm.setOutPort(OFPort.OFPP_NONE);
334
Naoki Shiota8df97bc2014-03-13 18:42:23 -0700335 pusher.add(sw, fm, MsgPriority.HIGH);
Brian O'Connore46492e2013-11-14 21:11:50 -0800336 }
Brian O'Connora8e49802013-10-30 20:49:59 -0700337
Brian O'Connore46492e2013-11-14 21:11:50 -0800338 /**
339 * Return the hash code of the Flow Entry ID
340 */
341 @Override
342 public int hashCode() {
Pavlin Radoslavov07fb9972013-12-02 16:20:24 -0800343 return flowEntryId.hashCode();
Brian O'Connore46492e2013-11-14 21:11:50 -0800344 }
Brian O'Connora8e49802013-10-30 20:49:59 -0700345
Brian O'Connore46492e2013-11-14 21:11:50 -0800346 /**
347 * Returns true of the object is another Flow Entry ID with
348 * the same value; otherwise, returns false.
349 *
350 * @param Object to compare
Naoki Shiotab485d412013-11-26 12:04:19 -0800351 * @return true if the object has the same Flow Entry ID.
Brian O'Connore46492e2013-11-14 21:11:50 -0800352 */
353 @Override
354 public boolean equals(Object obj){
Naoki Shiotadf051d42014-01-20 16:12:41 -0800355 if(obj != null && obj.getClass() == this.getClass()) {
Brian O'Connore46492e2013-11-14 21:11:50 -0800356 FlowEntryWrapper entry = (FlowEntryWrapper) obj;
357 // TODO: we need to actually compare the match + actions
Pavlin Radoslavov07fb9972013-12-02 16:20:24 -0800358 return this.flowEntryId.equals(entry.flowEntryId);
Brian O'Connore46492e2013-11-14 21:11:50 -0800359 }
360 return false;
361 }
Brian O'Connor0d6ba512013-11-05 15:17:44 -0800362
Brian O'Connore46492e2013-11-14 21:11:50 -0800363 @Override
364 public String toString() {
Pavlin Radoslavov07fb9972013-12-02 16:20:24 -0800365 return flowEntryId.toString();
Brian O'Connore46492e2013-11-14 21:11:50 -0800366 }
367 }
Brian O'Connor0d6ba512013-11-05 15:17:44 -0800368}