blob: 23bf7ae0a68d3dc9184566258d66b24f68f62014 [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;
Brian O'Connora8e49802013-10-30 20:49:59 -070027import net.onrc.onos.graph.GraphDBOperation;
28import net.onrc.onos.ofcontroller.core.INetMapTopologyObjects.IFlowEntry;
29import net.onrc.onos.ofcontroller.core.INetMapTopologyObjects.ISwitchObject;
Pavlin Radoslavov6bfaea62013-12-03 14:55:57 -080030import net.onrc.onos.ofcontroller.flowmanager.FlowDatabaseOperation;
Brian O'Connora8e49802013-10-30 20:49:59 -070031import net.onrc.onos.ofcontroller.util.Dpid;
Pavlin Radoslavov6bfaea62013-12-03 14:55:57 -080032import net.onrc.onos.ofcontroller.util.FlowEntry;
Brian O'Connora8e49802013-10-30 20:49:59 -070033import net.onrc.onos.ofcontroller.util.FlowEntryId;
34
Naoki Shiotae3199732013-11-25 16:14:43 -080035/**
Naoki Shiotab485d412013-11-26 12:04:19 -080036 * FlowSynchronizer is an implementation of FlowSyncService.
Pavlin Radoslavov07fb9972013-12-02 16:20:24 -080037 * In addition to IFlowSyncService, FlowSynchronizer periodically reads flow
38 * tables from switches and compare them with GraphDB to drop unnecessary
39 * flows and/or to install missing flows.
Naoki Shiotae3199732013-11-25 16:14:43 -080040 * @author Brian
41 *
42 */
Brian O'Connorea1efbe2013-11-25 22:57:43 -080043public class FlowSynchronizer implements IFlowSyncService {
Brian O'Connora8e49802013-10-30 20:49:59 -070044
Brian O'Connorea1efbe2013-11-25 22:57:43 -080045 private static Logger log = LoggerFactory.getLogger(FlowSynchronizer.class);
Brian O'Connore46492e2013-11-14 21:11:50 -080046
Brian O'Connor8c166a72013-11-14 18:41:48 -080047 private GraphDBOperation dbHandler;
Brian O'Connorea1efbe2013-11-25 22:57:43 -080048 protected IFlowPusherService pusher;
Naoki Shiota2bdda572013-12-09 15:05:21 -080049 private Map<IOFSwitch, FutureTask<SyncResult>> switchThreads;
Brian O'Connore46492e2013-11-14 21:11:50 -080050
51 public FlowSynchronizer() {
52 dbHandler = new GraphDBOperation("");
Naoki Shiota2bdda572013-12-09 15:05:21 -080053 switchThreads = new HashMap<IOFSwitch, FutureTask<SyncResult>>();
Brian O'Connore46492e2013-11-14 21:11:50 -080054 }
55
Brian O'Connorea1efbe2013-11-25 22:57:43 -080056 @Override
Naoki Shiota2bdda572013-12-09 15:05:21 -080057 public Future<SyncResult> synchronize(IOFSwitch sw) {
Pavlin Radoslavovf8c78552013-11-26 10:56:59 -080058 Synchronizer sync = new Synchronizer(sw);
Naoki Shiota2bdda572013-12-09 15:05:21 -080059 FutureTask<SyncResult> task = new FutureTask<SyncResult>(sync);
60 switchThreads.put(sw, task);
61 task.run();
62 return task;
Brian O'Connore46492e2013-11-14 21:11:50 -080063 }
Brian O'Connorea1efbe2013-11-25 22:57:43 -080064
Brian O'Connore46492e2013-11-14 21:11:50 -080065 @Override
Brian O'Connorea1efbe2013-11-25 22:57:43 -080066 public void interrupt(IOFSwitch sw) {
Naoki Shiota2bdda572013-12-09 15:05:21 -080067 FutureTask<SyncResult> t = switchThreads.remove(sw);
Brian O'Connore46492e2013-11-14 21:11:50 -080068 if(t != null) {
Naoki Shiota2bdda572013-12-09 15:05:21 -080069 t.cancel(true);
Brian O'Connorea1efbe2013-11-25 22:57:43 -080070 }
Brian O'Connore46492e2013-11-14 21:11:50 -080071 }
72
Naoki Shiotab485d412013-11-26 12:04:19 -080073 /**
74 * Initialize Synchronizer.
75 * @param pusherService FlowPusherService used for sending messages.
76 */
Brian O'Connorea1efbe2013-11-25 22:57:43 -080077 public void init(IFlowPusherService pusherService) {
78 pusher = pusherService;
Brian O'Connore46492e2013-11-14 21:11:50 -080079 }
80
Naoki Shiotae3199732013-11-25 16:14:43 -080081 /**
82 * Synchronizer represents main thread of synchronization.
83 * @author Brian
84 *
85 */
Naoki Shiota2bdda572013-12-09 15:05:21 -080086 protected class Synchronizer implements Callable<SyncResult> {
Brian O'Connora8e49802013-10-30 20:49:59 -070087 IOFSwitch sw;
88 ISwitchObject swObj;
Brian O'Connore46492e2013-11-14 21:11:50 -080089
Pavlin Radoslavovf8c78552013-11-26 10:56:59 -080090 public Synchronizer(IOFSwitch sw) {
Brian O'Connora8e49802013-10-30 20:49:59 -070091 this.sw = sw;
92 Dpid dpid = new Dpid(sw.getId());
93 this.swObj = dbHandler.searchSwitch(dpid.toString());
94 }
Brian O'Connore46492e2013-11-14 21:11:50 -080095
Brian O'Connor321a5d32013-12-09 18:11:35 -080096 double graphIDTime, switchTime, compareTime, graphEntryTime, extractTime, pushTime, totalTime;
Brian O'Connora8e49802013-10-30 20:49:59 -070097 @Override
Naoki Shiota2bdda572013-12-09 15:05:21 -080098 public SyncResult call() {
Brian O'Connorea1efbe2013-11-25 22:57:43 -080099 // TODO: stop adding other flow entries while synchronizing
100 //pusher.suspend(sw);
Brian O'Connor321a5d32013-12-09 18:11:35 -0800101 long start = System.nanoTime();
Brian O'Connor0d6ba512013-11-05 15:17:44 -0800102 Set<FlowEntryWrapper> graphEntries = getFlowEntriesFromGraph();
Brian O'Connor321a5d32013-12-09 18:11:35 -0800103 long step1 = System.nanoTime();
Brian O'Connor0d6ba512013-11-05 15:17:44 -0800104 Set<FlowEntryWrapper> switchEntries = getFlowEntriesFromSwitch();
Naoki Shiotadf051d42014-01-20 16:12:41 -0800105 if (switchEntries == null) {
106 log.debug("getFlowEntriesFromSwitch() failed");
107 return null;
108 }
Brian O'Connor321a5d32013-12-09 18:11:35 -0800109 long step2 = System.nanoTime();
Naoki Shiota2bdda572013-12-09 15:05:21 -0800110 SyncResult result = compare(graphEntries, switchEntries);
Brian O'Connor321a5d32013-12-09 18:11:35 -0800111 long step3 = System.nanoTime();
112 graphIDTime = (step1 - start);
113 switchTime = (step2 - step1);
114 compareTime = (step3 - step2);
115 totalTime = (step3 - start);
116 outputTime();
Brian O'Connorea1efbe2013-11-25 22:57:43 -0800117 //pusher.resume(sw);
Naoki Shiota2bdda572013-12-09 15:05:21 -0800118
119 return result;
Brian O'Connora8e49802013-10-30 20:49:59 -0700120 }
Brian O'Connor321a5d32013-12-09 18:11:35 -0800121
122 private void outputTime() {
123 double div = Math.pow(10, 6); //convert nanoseconds to ms
124 graphIDTime /= div;
125 switchTime /= div;
126 compareTime = (compareTime - graphEntryTime - extractTime - pushTime) / div;
127 graphEntryTime /= div;
128 extractTime /= div;
129 pushTime /= div;
Brian O'Connor8f7f8582013-12-11 15:48:07 -0800130 totalTime /= div;
Yuta HIGUCHI5302ddf2014-01-06 12:53:35 -0800131 log.debug("Sync time (ms):{},{},{},{},{},{},{}"
132 , graphIDTime
133 , switchTime
134 , compareTime
135 , graphEntryTime
136 , extractTime
137 , pushTime
138 , totalTime);
Brian O'Connor321a5d32013-12-09 18:11:35 -0800139 }
Brian O'Connore46492e2013-11-14 21:11:50 -0800140
Naoki Shiotae3199732013-11-25 16:14:43 -0800141 /**
Pavlin Radoslavov07fb9972013-12-02 16:20:24 -0800142 * Compare flows entries in GraphDB and switch to pick up necessary
143 * messages.
Naoki Shiotae3199732013-11-25 16:14:43 -0800144 * After picking up, picked messages are added to FlowPusher.
145 * @param graphEntries Flow entries in GraphDB.
146 * @param switchEntries Flow entries in switch.
147 */
Naoki Shiota2bdda572013-12-09 15:05:21 -0800148 private SyncResult compare(Set<FlowEntryWrapper> graphEntries, Set<FlowEntryWrapper> switchEntries) {
Brian O'Connor0d6ba512013-11-05 15:17:44 -0800149 int added = 0, removed = 0, skipped = 0;
150 for(FlowEntryWrapper entry : switchEntries) {
Brian O'Connore46492e2013-11-14 21:11:50 -0800151 if(graphEntries.contains(entry)) {
152 graphEntries.remove(entry);
153 skipped++;
154 }
155 else {
156 // remove flow entry from the switch
157 entry.removeFromSwitch(sw);
158 removed++;
159 }
Brian O'Connora8e49802013-10-30 20:49:59 -0700160 }
Brian O'Connor0d6ba512013-11-05 15:17:44 -0800161 for(FlowEntryWrapper entry : graphEntries) {
Brian O'Connore46492e2013-11-14 21:11:50 -0800162 // add flow entry to switch
163 entry.addToSwitch(sw);
Brian O'Connor321a5d32013-12-09 18:11:35 -0800164 graphEntryTime += entry.dbTime;
165 extractTime += entry.extractTime;
166 pushTime += entry.pushTime;
Brian O'Connor0d6ba512013-11-05 15:17:44 -0800167 added++;
Yuta HIGUCHI5302ddf2014-01-06 12:53:35 -0800168 }
169 log.debug("Flow entries added {}, " +
170 "Flow entries removed {}, " +
171 "Flow entries skipped {}"
172 , added
173 , removed
174 , skipped );
175
Naoki Shiota2bdda572013-12-09 15:05:21 -0800176 return new SyncResult(added, removed, skipped);
Brian O'Connora8e49802013-10-30 20:49:59 -0700177 }
Brian O'Connore46492e2013-11-14 21:11:50 -0800178
Naoki Shiotae3199732013-11-25 16:14:43 -0800179 /**
180 * Read GraphDB to get FlowEntries associated with a switch.
181 * @return set of FlowEntries
182 */
Brian O'Connor0d6ba512013-11-05 15:17:44 -0800183 private Set<FlowEntryWrapper> getFlowEntriesFromGraph() {
184 Set<FlowEntryWrapper> entries = new HashSet<FlowEntryWrapper>();
Brian O'Connora8e49802013-10-30 20:49:59 -0700185 for(IFlowEntry entry : swObj.getFlowEntries()) {
Brian O'Connor0d6ba512013-11-05 15:17:44 -0800186 FlowEntryWrapper fe = new FlowEntryWrapper(entry);
187 entries.add(fe);
Brian O'Connora8e49802013-10-30 20:49:59 -0700188 }
Brian O'Connor0d6ba512013-11-05 15:17:44 -0800189 return entries;
Brian O'Connora8e49802013-10-30 20:49:59 -0700190 }
Brian O'Connore46492e2013-11-14 21:11:50 -0800191
Naoki Shiotae3199732013-11-25 16:14:43 -0800192 /**
193 * Read flow table from switch and derive FlowEntries from table.
194 * @return set of FlowEntries
195 */
Brian O'Connor0d6ba512013-11-05 15:17:44 -0800196 private Set<FlowEntryWrapper> getFlowEntriesFromSwitch() {
Brian O'Connora8e49802013-10-30 20:49:59 -0700197
198 int lengthU = 0;
199 OFMatch match = new OFMatch();
200 match.setWildcards(OFMatch.OFPFW_ALL);
201
202 OFFlowStatisticsRequest stat = new OFFlowStatisticsRequest();
203 stat.setOutPort((short) 0xffff); //TODO: OFPort.OFPP_NONE
204 stat.setTableId((byte) 0xff); // TODO: fix this with enum (ALL TABLES)
205 stat.setMatch(match);
206 List<OFStatistics> stats = new ArrayList<OFStatistics>();
207 stats.add(stat);
208 lengthU += stat.getLength();
209
210 OFStatisticsRequest req = new OFStatisticsRequest();
211 req.setStatisticType(OFStatisticsType.FLOW);
212 req.setStatistics(stats);
213 lengthU += req.getLengthU();
214 req.setLengthU(lengthU);
215
216 List<OFStatistics> entries = null;
217 try {
218 Future<List<OFStatistics>> dfuture = sw.getStatistics(req);
219 entries = dfuture.get();
220 } catch (IOException e) {
221 // TODO Auto-generated catch block
222 e.printStackTrace();
Naoki Shiotadf051d42014-01-20 16:12:41 -0800223 return null;
Brian O'Connora8e49802013-10-30 20:49:59 -0700224 } catch (InterruptedException e) {
225 // TODO Auto-generated catch block
226 e.printStackTrace();
Naoki Shiotadf051d42014-01-20 16:12:41 -0800227 return null;
Brian O'Connora8e49802013-10-30 20:49:59 -0700228 } catch (ExecutionException e) {
229 // TODO Auto-generated catch block
230 e.printStackTrace();
Naoki Shiotadf051d42014-01-20 16:12:41 -0800231 return null;
Brian O'Connora8e49802013-10-30 20:49:59 -0700232 }
Brian O'Connore46492e2013-11-14 21:11:50 -0800233
Brian O'Connor0d6ba512013-11-05 15:17:44 -0800234 Set<FlowEntryWrapper> results = new HashSet<FlowEntryWrapper>();
Brian O'Connora8e49802013-10-30 20:49:59 -0700235 for(OFStatistics result : entries){
Brian O'Connora8e49802013-10-30 20:49:59 -0700236 OFFlowStatisticsReply entry = (OFFlowStatisticsReply) result;
Brian O'Connor0d6ba512013-11-05 15:17:44 -0800237 FlowEntryWrapper fe = new FlowEntryWrapper(entry);
238 results.add(fe);
Brian O'Connora8e49802013-10-30 20:49:59 -0700239 }
Brian O'Connor0d6ba512013-11-05 15:17:44 -0800240 return results;
Brian O'Connora8e49802013-10-30 20:49:59 -0700241 }
Brian O'Connor8c166a72013-11-14 18:41:48 -0800242
Brian O'Connora8e49802013-10-30 20:49:59 -0700243 }
244
Naoki Shiotae3199732013-11-25 16:14:43 -0800245 /**
Pavlin Radoslavov07fb9972013-12-02 16:20:24 -0800246 * FlowEntryWrapper represents abstract FlowEntry which is embodied
247 * by FlowEntryId (from GraphDB) or OFFlowStatisticsReply (from switch).
Naoki Shiotae3199732013-11-25 16:14:43 -0800248 * @author Brian
249 *
250 */
Brian O'Connore46492e2013-11-14 21:11:50 -0800251 class FlowEntryWrapper {
Pavlin Radoslavov07fb9972013-12-02 16:20:24 -0800252 FlowEntryId flowEntryId;
Brian O'Connore46492e2013-11-14 21:11:50 -0800253 OFFlowStatisticsReply statisticsReply;
254
255 public FlowEntryWrapper(IFlowEntry entry) {
Pavlin Radoslavov07fb9972013-12-02 16:20:24 -0800256 flowEntryId = new FlowEntryId(entry.getFlowEntryId());
Brian O'Connora8e49802013-10-30 20:49:59 -0700257 }
258
Brian O'Connore46492e2013-11-14 21:11:50 -0800259 public FlowEntryWrapper(OFFlowStatisticsReply entry) {
Pavlin Radoslavov07fb9972013-12-02 16:20:24 -0800260 flowEntryId = new FlowEntryId(entry.getCookie());
Brian O'Connore46492e2013-11-14 21:11:50 -0800261 statisticsReply = entry;
Brian O'Connore46492e2013-11-14 21:11:50 -0800262 }
Brian O'Connora8e49802013-10-30 20:49:59 -0700263
Naoki Shiotae3199732013-11-25 16:14:43 -0800264 /**
265 * Install this FlowEntry to a switch via FlowPusher.
Naoki Shiotab485d412013-11-26 12:04:19 -0800266 * @param sw Switch to which flow will be installed.
Naoki Shiotae3199732013-11-25 16:14:43 -0800267 */
Brian O'Connor321a5d32013-12-09 18:11:35 -0800268 double dbTime, extractTime, pushTime;
Brian O'Connore46492e2013-11-14 21:11:50 -0800269 public void addToSwitch(IOFSwitch sw) {
Pavlin Radoslavov07fb9972013-12-02 16:20:24 -0800270 if (statisticsReply != null) {
Yuta HIGUCHI5302ddf2014-01-06 12:53:35 -0800271 log.error("Error adding existing flow entry {} to sw {}",
Brian O'Connore46492e2013-11-14 21:11:50 -0800272 statisticsReply.getCookie(), sw.getId());
Pavlin Radoslavov07fb9972013-12-02 16:20:24 -0800273 return;
Brian O'Connore46492e2013-11-14 21:11:50 -0800274 }
Pavlin Radoslavov07fb9972013-12-02 16:20:24 -0800275
Brian O'Connor321a5d32013-12-09 18:11:35 -0800276 double startDB = System.nanoTime();
Pavlin Radoslavov07fb9972013-12-02 16:20:24 -0800277 // Get the Flow Entry state from the Network Graph
278 IFlowEntry iFlowEntry = null;
279 try {
280 iFlowEntry = dbHandler.searchFlowEntry(flowEntryId);
281 } catch (Exception e) {
282 log.error("Error finding flow entry {} in Network Graph",
283 flowEntryId);
284 return;
285 }
286 if (iFlowEntry == null) {
287 log.error("Cannot add flow entry {} to sw {} : flow entry not found",
288 flowEntryId, sw.getId());
289 return;
290 }
Brian O'Connor321a5d32013-12-09 18:11:35 -0800291 dbTime = System.nanoTime() - startDB;
Pavlin Radoslavov07fb9972013-12-02 16:20:24 -0800292
Brian O'Connor321a5d32013-12-09 18:11:35 -0800293 double startExtract = System.nanoTime();
Pavlin Radoslavov6bfaea62013-12-03 14:55:57 -0800294 FlowEntry flowEntry =
295 FlowDatabaseOperation.extractFlowEntry(iFlowEntry);
296 if (flowEntry == null) {
297 log.error("Cannot add flow entry {} to sw {} : flow entry cannot be extracted",
298 flowEntryId, sw.getId());
299 return;
300 }
Brian O'Connor321a5d32013-12-09 18:11:35 -0800301 extractTime = System.nanoTime() - startExtract;
Yuta HIGUCHI5302ddf2014-01-06 12:53:35 -0800302
Brian O'Connor321a5d32013-12-09 18:11:35 -0800303 double startPush = System.nanoTime();
Pavlin Radoslavovab3f8862013-12-04 18:35:53 -0800304 pusher.pushFlowEntry(sw, flowEntry);
Brian O'Connor321a5d32013-12-09 18:11:35 -0800305 pushTime = System.nanoTime() - startPush;
Brian O'Connore46492e2013-11-14 21:11:50 -0800306 }
Yuta HIGUCHI5302ddf2014-01-06 12:53:35 -0800307
Naoki Shiotae3199732013-11-25 16:14:43 -0800308 /**
309 * Remove this FlowEntry from a switch via FlowPusher.
Naoki Shiotab485d412013-11-26 12:04:19 -0800310 * @param sw Switch from which flow will be removed.
Naoki Shiotae3199732013-11-25 16:14:43 -0800311 */
Pavlin Radoslavov07fb9972013-12-02 16:20:24 -0800312 public void removeFromSwitch(IOFSwitch sw) {
313 if (statisticsReply == null) {
Yuta HIGUCHI5302ddf2014-01-06 12:53:35 -0800314 log.error("Error removing non-existent flow entry {} from sw {}",
Pavlin Radoslavov07fb9972013-12-02 16:20:24 -0800315 flowEntryId, sw.getId());
316 return;
317 }
Brian O'Connora8e49802013-10-30 20:49:59 -0700318
Pavlin Radoslavov07fb9972013-12-02 16:20:24 -0800319 // Convert Statistics Reply to Flow Mod, then write it
320 OFFlowMod fm = new OFFlowMod();
321 fm.setCookie(statisticsReply.getCookie());
322 fm.setCommand(OFFlowMod.OFPFC_DELETE_STRICT);
323 fm.setLengthU(OFFlowMod.MINIMUM_LENGTH);
324 fm.setMatch(statisticsReply.getMatch());
325 fm.setPriority(statisticsReply.getPriority());
326 fm.setOutPort(OFPort.OFPP_NONE);
327
328 pusher.add(sw, fm);
Brian O'Connore46492e2013-11-14 21:11:50 -0800329 }
Brian O'Connora8e49802013-10-30 20:49:59 -0700330
Brian O'Connore46492e2013-11-14 21:11:50 -0800331 /**
332 * Return the hash code of the Flow Entry ID
333 */
334 @Override
335 public int hashCode() {
Pavlin Radoslavov07fb9972013-12-02 16:20:24 -0800336 return flowEntryId.hashCode();
Brian O'Connore46492e2013-11-14 21:11:50 -0800337 }
Brian O'Connora8e49802013-10-30 20:49:59 -0700338
Brian O'Connore46492e2013-11-14 21:11:50 -0800339 /**
340 * Returns true of the object is another Flow Entry ID with
341 * the same value; otherwise, returns false.
342 *
343 * @param Object to compare
Naoki Shiotab485d412013-11-26 12:04:19 -0800344 * @return true if the object has the same Flow Entry ID.
Brian O'Connore46492e2013-11-14 21:11:50 -0800345 */
346 @Override
347 public boolean equals(Object obj){
Naoki Shiotadf051d42014-01-20 16:12:41 -0800348 if(obj != null && obj.getClass() == this.getClass()) {
Brian O'Connore46492e2013-11-14 21:11:50 -0800349 FlowEntryWrapper entry = (FlowEntryWrapper) obj;
350 // TODO: we need to actually compare the match + actions
Pavlin Radoslavov07fb9972013-12-02 16:20:24 -0800351 return this.flowEntryId.equals(entry.flowEntryId);
Brian O'Connore46492e2013-11-14 21:11:50 -0800352 }
353 return false;
354 }
Brian O'Connor0d6ba512013-11-05 15:17:44 -0800355
Brian O'Connore46492e2013-11-14 21:11:50 -0800356 @Override
357 public String toString() {
Pavlin Radoslavov07fb9972013-12-02 16:20:24 -0800358 return flowEntryId.toString();
Brian O'Connore46492e2013-11-14 21:11:50 -0800359 }
360 }
Brian O'Connor0d6ba512013-11-05 15:17:44 -0800361}