Umesh Krishnaswamy | 345ee99 | 2012-12-13 20:29:48 -0800 | [diff] [blame] | 1 | package net.floodlightcontroller.util; |
| 2 | |
Jonathan Hart | a88fd24 | 2014-04-03 11:24:54 -0700 | [diff] [blame] | 3 | import static org.junit.Assert.assertEquals; |
| 4 | import static org.junit.Assert.assertNotNull; |
| 5 | import static org.junit.Assert.assertNull; |
| 6 | import static org.junit.Assert.assertTrue; |
Umesh Krishnaswamy | 345ee99 | 2012-12-13 20:29:48 -0800 | [diff] [blame] | 7 | |
Jonathan Hart | a88fd24 | 2014-04-03 11:24:54 -0700 | [diff] [blame] | 8 | import java.io.IOException; |
Umesh Krishnaswamy | 345ee99 | 2012-12-13 20:29:48 -0800 | [diff] [blame] | 9 | import java.util.Collection; |
| 10 | import java.util.Date; |
| 11 | import java.util.List; |
| 12 | import java.util.Map; |
Brian O'Connor | c67f9fa | 2014-08-07 18:17:46 -0700 | [diff] [blame^] | 13 | import java.util.Set; |
Umesh Krishnaswamy | 345ee99 | 2012-12-13 20:29:48 -0800 | [diff] [blame] | 14 | import java.util.concurrent.Future; |
| 15 | |
| 16 | import net.floodlightcontroller.core.FloodlightContext; |
Brian O'Connor | c67f9fa | 2014-08-07 18:17:46 -0700 | [diff] [blame^] | 17 | import net.floodlightcontroller.core.IFloodlightProviderService; |
Jonathan Hart | a88fd24 | 2014-04-03 11:24:54 -0700 | [diff] [blame] | 18 | import net.floodlightcontroller.core.IFloodlightProviderService.Role; |
Umesh Krishnaswamy | 345ee99 | 2012-12-13 20:29:48 -0800 | [diff] [blame] | 19 | import net.floodlightcontroller.core.IOFSwitch; |
Brian O'Connor | c67f9fa | 2014-08-07 18:17:46 -0700 | [diff] [blame^] | 20 | import net.floodlightcontroller.debugcounter.IDebugCounterService; |
| 21 | import net.floodlightcontroller.debugcounter.IDebugCounterService.CounterException; |
| 22 | import net.floodlightcontroller.threadpool.IThreadPoolService; |
Umesh Krishnaswamy | 345ee99 | 2012-12-13 20:29:48 -0800 | [diff] [blame] | 23 | |
| 24 | import org.jboss.netty.channel.Channel; |
Brian O'Connor | c67f9fa | 2014-08-07 18:17:46 -0700 | [diff] [blame^] | 25 | import org.projectfloodlight.openflow.protocol.OFActionType; |
| 26 | import org.projectfloodlight.openflow.protocol.OFCapabilities; |
| 27 | import org.projectfloodlight.openflow.protocol.OFDescStatsReply; |
| 28 | import org.projectfloodlight.openflow.protocol.OFMessage; |
| 29 | import org.projectfloodlight.openflow.protocol.OFPortDesc; |
| 30 | import org.projectfloodlight.openflow.protocol.OFPortStatus; |
| 31 | import org.projectfloodlight.openflow.protocol.OFStatsReply; |
| 32 | import org.projectfloodlight.openflow.protocol.OFStatsRequest; |
| 33 | import org.projectfloodlight.openflow.protocol.OFVersion; |
| 34 | import org.projectfloodlight.openflow.types.U64; |
Umesh Krishnaswamy | 345ee99 | 2012-12-13 20:29:48 -0800 | [diff] [blame] | 35 | |
| 36 | /** |
| 37 | * A mock implementation of IFOSwitch we use for {@link OFMessageDamper} |
Ray Milkey | 269ffb9 | 2014-04-03 14:43:30 -0700 | [diff] [blame] | 38 | * <p/> |
Umesh Krishnaswamy | 345ee99 | 2012-12-13 20:29:48 -0800 | [diff] [blame] | 39 | * We need to mock equals() and hashCode() but alas, EasyMock doesn't support |
| 40 | * this. Sigh. And of course this happens to be the interface with the most |
Ray Milkey | 269ffb9 | 2014-04-03 14:43:30 -0700 | [diff] [blame] | 41 | * methods. |
Umesh Krishnaswamy | 345ee99 | 2012-12-13 20:29:48 -0800 | [diff] [blame] | 42 | * |
Ray Milkey | 269ffb9 | 2014-04-03 14:43:30 -0700 | [diff] [blame] | 43 | * @author gregor |
Umesh Krishnaswamy | 345ee99 | 2012-12-13 20:29:48 -0800 | [diff] [blame] | 44 | */ |
| 45 | public class OFMessageDamperMockSwitch implements IOFSwitch { |
| 46 | OFMessage writtenMessage; |
| 47 | FloodlightContext writtenContext; |
Ray Milkey | 269ffb9 | 2014-04-03 14:43:30 -0700 | [diff] [blame] | 48 | |
Umesh Krishnaswamy | 345ee99 | 2012-12-13 20:29:48 -0800 | [diff] [blame] | 49 | public OFMessageDamperMockSwitch() { |
| 50 | reset(); |
| 51 | } |
Ray Milkey | 269ffb9 | 2014-04-03 14:43:30 -0700 | [diff] [blame] | 52 | |
Umesh Krishnaswamy | 345ee99 | 2012-12-13 20:29:48 -0800 | [diff] [blame] | 53 | /* reset this mock. I.e., clear the stored message previously written */ |
| 54 | public void reset() { |
| 55 | writtenMessage = null; |
| 56 | writtenContext = null; |
| 57 | } |
Ray Milkey | 269ffb9 | 2014-04-03 14:43:30 -0700 | [diff] [blame] | 58 | |
Brian O'Connor | c67f9fa | 2014-08-07 18:17:46 -0700 | [diff] [blame^] | 59 | /* assert that a message was written to this switch and that the |
| 60 | * written message and context matches the expected values |
Umesh Krishnaswamy | 345ee99 | 2012-12-13 20:29:48 -0800 | [diff] [blame] | 61 | * @param expected |
| 62 | * @param expectedContext |
| 63 | */ |
Ray Milkey | 269ffb9 | 2014-04-03 14:43:30 -0700 | [diff] [blame] | 64 | public void assertMessageWasWritten(OFMessage expected, |
Brian O'Connor | c67f9fa | 2014-08-07 18:17:46 -0700 | [diff] [blame^] | 65 | FloodlightContext expectedContext) { |
Umesh Krishnaswamy | 345ee99 | 2012-12-13 20:29:48 -0800 | [diff] [blame] | 66 | assertNotNull("No OFMessage was written", writtenMessage); |
| 67 | assertEquals(expected, writtenMessage); |
| 68 | assertEquals(expectedContext, writtenContext); |
| 69 | } |
Ray Milkey | 269ffb9 | 2014-04-03 14:43:30 -0700 | [diff] [blame] | 70 | |
Umesh Krishnaswamy | 345ee99 | 2012-12-13 20:29:48 -0800 | [diff] [blame] | 71 | /* |
Brian O'Connor | c67f9fa | 2014-08-07 18:17:46 -0700 | [diff] [blame^] | 72 | * assert that no message was written |
Umesh Krishnaswamy | 345ee99 | 2012-12-13 20:29:48 -0800 | [diff] [blame] | 73 | */ |
| 74 | public void assertNoMessageWritten() { |
Ray Milkey | 269ffb9 | 2014-04-03 14:43:30 -0700 | [diff] [blame] | 75 | assertNull("OFMessage was written but didn't expect one", |
| 76 | writtenMessage); |
| 77 | assertNull("There was a context but didn't expect one", |
| 78 | writtenContext); |
Umesh Krishnaswamy | 345ee99 | 2012-12-13 20:29:48 -0800 | [diff] [blame] | 79 | } |
Brian O'Connor | c67f9fa | 2014-08-07 18:17:46 -0700 | [diff] [blame^] | 80 | |
Umesh Krishnaswamy | 345ee99 | 2012-12-13 20:29:48 -0800 | [diff] [blame] | 81 | /* |
| 82 | * use hashCode() and equals() from Object |
| 83 | */ |
Ray Milkey | 269ffb9 | 2014-04-03 14:43:30 -0700 | [diff] [blame] | 84 | |
Umesh Krishnaswamy | 345ee99 | 2012-12-13 20:29:48 -0800 | [diff] [blame] | 85 | @Override |
Brian O'Connor | c67f9fa | 2014-08-07 18:17:46 -0700 | [diff] [blame^] | 86 | public void write(OFMessage m, |
| 87 | FloodlightContext bc) throws IOException { |
Umesh Krishnaswamy | 345ee99 | 2012-12-13 20:29:48 -0800 | [diff] [blame] | 88 | assertNull("write() called but already have message", writtenMessage); |
| 89 | assertNull("write() called but already have context", writtenContext); |
| 90 | writtenContext = bc; |
| 91 | writtenMessage = m; |
Brian O'Connor | c67f9fa | 2014-08-07 18:17:46 -0700 | [diff] [blame^] | 92 | |
Umesh Krishnaswamy | 345ee99 | 2012-12-13 20:29:48 -0800 | [diff] [blame] | 93 | } |
Ray Milkey | 269ffb9 | 2014-04-03 14:43:30 -0700 | [diff] [blame] | 94 | |
Umesh Krishnaswamy | 345ee99 | 2012-12-13 20:29:48 -0800 | [diff] [blame] | 95 | @Override |
Brian O'Connor | c67f9fa | 2014-08-07 18:17:46 -0700 | [diff] [blame^] | 96 | public void write(List<OFMessage> msglist, |
| 97 | FloodlightContext bc) throws IOException { |
Umesh Krishnaswamy | 345ee99 | 2012-12-13 20:29:48 -0800 | [diff] [blame] | 98 | assertTrue("Unexpected method call", false); |
| 99 | } |
Ray Milkey | 269ffb9 | 2014-04-03 14:43:30 -0700 | [diff] [blame] | 100 | |
Brian O'Connor | c67f9fa | 2014-08-07 18:17:46 -0700 | [diff] [blame^] | 101 | // @Override |
| 102 | // public void setFeaturesReply(OFFeaturesReply featuresReply) { |
| 103 | // assertTrue("Unexpected method call", false); |
| 104 | // } |
| 105 | |
| 106 | // @Override |
| 107 | // public void setSwitchProperties(OFDescriptionStatistics description) { |
| 108 | // assertTrue("Unexpected method call", false); |
| 109 | // // TODO Auto-generated method stub |
| 110 | // } |
Ray Milkey | 269ffb9 | 2014-04-03 14:43:30 -0700 | [diff] [blame] | 111 | |
Umesh Krishnaswamy | 345ee99 | 2012-12-13 20:29:48 -0800 | [diff] [blame] | 112 | @Override |
Brian O'Connor | c67f9fa | 2014-08-07 18:17:46 -0700 | [diff] [blame^] | 113 | public Collection<OFPortDesc> getEnabledPorts() { |
Umesh Krishnaswamy | 345ee99 | 2012-12-13 20:29:48 -0800 | [diff] [blame] | 114 | assertTrue("Unexpected method call", false); |
| 115 | return null; |
| 116 | } |
Ray Milkey | 269ffb9 | 2014-04-03 14:43:30 -0700 | [diff] [blame] | 117 | |
Umesh Krishnaswamy | 345ee99 | 2012-12-13 20:29:48 -0800 | [diff] [blame] | 118 | @Override |
Brian O'Connor | c67f9fa | 2014-08-07 18:17:46 -0700 | [diff] [blame^] | 119 | public Collection<Integer> getEnabledPortNumbers() { |
Umesh Krishnaswamy | 345ee99 | 2012-12-13 20:29:48 -0800 | [diff] [blame] | 120 | assertTrue("Unexpected method call", false); |
| 121 | return null; |
| 122 | } |
Ray Milkey | 269ffb9 | 2014-04-03 14:43:30 -0700 | [diff] [blame] | 123 | |
Brian O'Connor | c67f9fa | 2014-08-07 18:17:46 -0700 | [diff] [blame^] | 124 | // @Override |
| 125 | // public OFPhysicalPort getPort(short portNumber) { |
| 126 | // assertTrue("Unexpected method call", false); |
| 127 | // return null; |
| 128 | // } |
| 129 | |
Umesh Krishnaswamy | 345ee99 | 2012-12-13 20:29:48 -0800 | [diff] [blame] | 130 | @Override |
Brian O'Connor | c67f9fa | 2014-08-07 18:17:46 -0700 | [diff] [blame^] | 131 | public OFPortDesc getPort(String portName) { |
Umesh Krishnaswamy | 345ee99 | 2012-12-13 20:29:48 -0800 | [diff] [blame] | 132 | assertTrue("Unexpected method call", false); |
| 133 | return null; |
| 134 | } |
Ray Milkey | 269ffb9 | 2014-04-03 14:43:30 -0700 | [diff] [blame] | 135 | |
Brian O'Connor | c67f9fa | 2014-08-07 18:17:46 -0700 | [diff] [blame^] | 136 | // @Override |
| 137 | // public void setPort(OFPhysicalPort port) { |
| 138 | // assertTrue("Unexpected method call", false); |
| 139 | // } |
| 140 | |
| 141 | // @Override |
| 142 | // public void deletePort(short portNumber) { |
| 143 | // assertTrue("Unexpected method call", false); |
| 144 | // } |
| 145 | |
| 146 | // @Override |
| 147 | // public void deletePort(String portName) { |
| 148 | // assertTrue("Unexpected method call", false); |
| 149 | // } |
| 150 | |
Umesh Krishnaswamy | 345ee99 | 2012-12-13 20:29:48 -0800 | [diff] [blame] | 151 | @Override |
Brian O'Connor | c67f9fa | 2014-08-07 18:17:46 -0700 | [diff] [blame^] | 152 | public Collection<OFPortDesc> getPorts() { |
Umesh Krishnaswamy | 345ee99 | 2012-12-13 20:29:48 -0800 | [diff] [blame] | 153 | assertTrue("Unexpected method call", false); |
| 154 | return null; |
| 155 | } |
Ray Milkey | 269ffb9 | 2014-04-03 14:43:30 -0700 | [diff] [blame] | 156 | |
Brian O'Connor | c67f9fa | 2014-08-07 18:17:46 -0700 | [diff] [blame^] | 157 | // @Override |
| 158 | // public boolean portEnabled(short portName) { |
| 159 | // assertTrue("Unexpected method call", false); |
| 160 | // return false; |
| 161 | // } |
Ray Milkey | 269ffb9 | 2014-04-03 14:43:30 -0700 | [diff] [blame] | 162 | |
Umesh Krishnaswamy | 345ee99 | 2012-12-13 20:29:48 -0800 | [diff] [blame] | 163 | @Override |
| 164 | public boolean portEnabled(String portName) { |
| 165 | assertTrue("Unexpected method call", false); |
| 166 | return false; |
| 167 | } |
Ray Milkey | 269ffb9 | 2014-04-03 14:43:30 -0700 | [diff] [blame] | 168 | |
Brian O'Connor | c67f9fa | 2014-08-07 18:17:46 -0700 | [diff] [blame^] | 169 | // @Override |
| 170 | // public boolean portEnabled(OFPhysicalPort port) { |
| 171 | // assertTrue("Unexpected method call", false); |
| 172 | // return false; |
| 173 | // } |
Ray Milkey | 269ffb9 | 2014-04-03 14:43:30 -0700 | [diff] [blame] | 174 | |
Umesh Krishnaswamy | 345ee99 | 2012-12-13 20:29:48 -0800 | [diff] [blame] | 175 | @Override |
| 176 | public long getId() { |
| 177 | assertTrue("Unexpected method call", false); |
| 178 | return 0; |
| 179 | } |
Ray Milkey | 269ffb9 | 2014-04-03 14:43:30 -0700 | [diff] [blame] | 180 | |
Umesh Krishnaswamy | 345ee99 | 2012-12-13 20:29:48 -0800 | [diff] [blame] | 181 | @Override |
| 182 | public String getStringId() { |
| 183 | assertTrue("Unexpected method call", false); |
| 184 | return null; |
| 185 | } |
Ray Milkey | 269ffb9 | 2014-04-03 14:43:30 -0700 | [diff] [blame] | 186 | |
Umesh Krishnaswamy | 345ee99 | 2012-12-13 20:29:48 -0800 | [diff] [blame] | 187 | @Override |
| 188 | public Map<Object, Object> getAttributes() { |
| 189 | assertTrue("Unexpected method call", false); |
| 190 | return null; |
| 191 | } |
Ray Milkey | 269ffb9 | 2014-04-03 14:43:30 -0700 | [diff] [blame] | 192 | |
Umesh Krishnaswamy | 345ee99 | 2012-12-13 20:29:48 -0800 | [diff] [blame] | 193 | @Override |
| 194 | public Date getConnectedSince() { |
| 195 | assertTrue("Unexpected method call", false); |
| 196 | return null; |
| 197 | } |
Ray Milkey | 269ffb9 | 2014-04-03 14:43:30 -0700 | [diff] [blame] | 198 | |
Umesh Krishnaswamy | 345ee99 | 2012-12-13 20:29:48 -0800 | [diff] [blame] | 199 | @Override |
| 200 | public int getNextTransactionId() { |
| 201 | assertTrue("Unexpected method call", false); |
| 202 | return 0; |
| 203 | } |
Ray Milkey | 269ffb9 | 2014-04-03 14:43:30 -0700 | [diff] [blame] | 204 | |
Brian O'Connor | c67f9fa | 2014-08-07 18:17:46 -0700 | [diff] [blame^] | 205 | // @Override |
| 206 | // public Future<List<OFStatistics>> |
| 207 | // getStatistics(OFStatisticsRequest request) throws IOException { |
| 208 | // assertTrue("Unexpected method call", false); |
| 209 | // return null; |
| 210 | // } |
Ray Milkey | 269ffb9 | 2014-04-03 14:43:30 -0700 | [diff] [blame] | 211 | |
Umesh Krishnaswamy | 345ee99 | 2012-12-13 20:29:48 -0800 | [diff] [blame] | 212 | @Override |
| 213 | public boolean isConnected() { |
| 214 | assertTrue("Unexpected method call", false); |
| 215 | return false; |
| 216 | } |
Ray Milkey | 269ffb9 | 2014-04-03 14:43:30 -0700 | [diff] [blame] | 217 | |
Umesh Krishnaswamy | 345ee99 | 2012-12-13 20:29:48 -0800 | [diff] [blame] | 218 | @Override |
| 219 | public void setConnected(boolean connected) { |
| 220 | assertTrue("Unexpected method call", false); |
| 221 | } |
Ray Milkey | 269ffb9 | 2014-04-03 14:43:30 -0700 | [diff] [blame] | 222 | |
Umesh Krishnaswamy | 345ee99 | 2012-12-13 20:29:48 -0800 | [diff] [blame] | 223 | @Override |
| 224 | public Role getRole() { |
| 225 | assertTrue("Unexpected method call", false); |
| 226 | return null; |
| 227 | } |
Ray Milkey | 269ffb9 | 2014-04-03 14:43:30 -0700 | [diff] [blame] | 228 | |
Brian O'Connor | c67f9fa | 2014-08-07 18:17:46 -0700 | [diff] [blame^] | 229 | // @Override |
| 230 | // public boolean isActive() { |
| 231 | // assertTrue("Unexpected method call", false); |
| 232 | // return false; |
| 233 | // } |
Ray Milkey | 269ffb9 | 2014-04-03 14:43:30 -0700 | [diff] [blame] | 234 | |
Brian O'Connor | c67f9fa | 2014-08-07 18:17:46 -0700 | [diff] [blame^] | 235 | // @Override |
| 236 | // public void deliverStatisticsReply(OFMessage reply) { |
| 237 | // assertTrue("Unexpected method call", false); |
| 238 | // } |
Ray Milkey | 269ffb9 | 2014-04-03 14:43:30 -0700 | [diff] [blame] | 239 | |
Umesh Krishnaswamy | 345ee99 | 2012-12-13 20:29:48 -0800 | [diff] [blame] | 240 | @Override |
| 241 | public void cancelStatisticsReply(int transactionId) { |
| 242 | assertTrue("Unexpected method call", false); |
| 243 | } |
Ray Milkey | 269ffb9 | 2014-04-03 14:43:30 -0700 | [diff] [blame] | 244 | |
Umesh Krishnaswamy | 345ee99 | 2012-12-13 20:29:48 -0800 | [diff] [blame] | 245 | @Override |
| 246 | public void cancelAllStatisticsReplies() { |
| 247 | assertTrue("Unexpected method call", false); |
| 248 | } |
Ray Milkey | 269ffb9 | 2014-04-03 14:43:30 -0700 | [diff] [blame] | 249 | |
Umesh Krishnaswamy | 345ee99 | 2012-12-13 20:29:48 -0800 | [diff] [blame] | 250 | @Override |
| 251 | public boolean hasAttribute(String name) { |
| 252 | assertTrue("Unexpected method call", false); |
| 253 | return false; |
| 254 | } |
Ray Milkey | 269ffb9 | 2014-04-03 14:43:30 -0700 | [diff] [blame] | 255 | |
Umesh Krishnaswamy | 345ee99 | 2012-12-13 20:29:48 -0800 | [diff] [blame] | 256 | @Override |
| 257 | public Object getAttribute(String name) { |
| 258 | assertTrue("Unexpected method call", false); |
| 259 | return null; |
| 260 | } |
Ray Milkey | 269ffb9 | 2014-04-03 14:43:30 -0700 | [diff] [blame] | 261 | |
Umesh Krishnaswamy | 345ee99 | 2012-12-13 20:29:48 -0800 | [diff] [blame] | 262 | @Override |
| 263 | public void setAttribute(String name, Object value) { |
| 264 | assertTrue("Unexpected method call", false); |
| 265 | } |
Ray Milkey | 269ffb9 | 2014-04-03 14:43:30 -0700 | [diff] [blame] | 266 | |
Umesh Krishnaswamy | 345ee99 | 2012-12-13 20:29:48 -0800 | [diff] [blame] | 267 | @Override |
| 268 | public Object removeAttribute(String name) { |
| 269 | assertTrue("Unexpected method call", false); |
| 270 | return null; |
| 271 | } |
Ray Milkey | 269ffb9 | 2014-04-03 14:43:30 -0700 | [diff] [blame] | 272 | |
Umesh Krishnaswamy | 345ee99 | 2012-12-13 20:29:48 -0800 | [diff] [blame] | 273 | @Override |
| 274 | public void clearAllFlowMods() { |
| 275 | assertTrue("Unexpected method call", false); |
| 276 | } |
Ray Milkey | 269ffb9 | 2014-04-03 14:43:30 -0700 | [diff] [blame] | 277 | |
Brian O'Connor | c67f9fa | 2014-08-07 18:17:46 -0700 | [diff] [blame^] | 278 | // @Override |
| 279 | // public boolean updateBroadcastCache(Long entry, Short port) { |
| 280 | // assertTrue("Unexpected method call", false); |
| 281 | // return false; |
| 282 | // } |
Ray Milkey | 269ffb9 | 2014-04-03 14:43:30 -0700 | [diff] [blame] | 283 | |
Brian O'Connor | c67f9fa | 2014-08-07 18:17:46 -0700 | [diff] [blame^] | 284 | // @Override |
| 285 | // public Map<Short, Long> getPortBroadcastHits() { |
| 286 | // assertTrue("Unexpected method call", false); |
| 287 | // return null; |
| 288 | // } |
Ray Milkey | 269ffb9 | 2014-04-03 14:43:30 -0700 | [diff] [blame] | 289 | |
Brian O'Connor | c67f9fa | 2014-08-07 18:17:46 -0700 | [diff] [blame^] | 290 | // @Override |
| 291 | // public void sendStatsQuery(OFStatisticsRequest request, int xid, |
| 292 | // IOFMessageListener caller) |
| 293 | // throws IOException { |
| 294 | // assertTrue("Unexpected method call", false); |
| 295 | // } |
Ray Milkey | 269ffb9 | 2014-04-03 14:43:30 -0700 | [diff] [blame] | 296 | |
Umesh Krishnaswamy | 345ee99 | 2012-12-13 20:29:48 -0800 | [diff] [blame] | 297 | @Override |
| 298 | public void flush() { |
| 299 | assertTrue("Unexpected method call", false); |
| 300 | } |
| 301 | |
Brian O'Connor | c67f9fa | 2014-08-07 18:17:46 -0700 | [diff] [blame^] | 302 | // @Override |
| 303 | // public void deliverOFFeaturesReply(OFMessage reply) { |
| 304 | // // TODO Auto-generated method stub |
| 305 | // |
| 306 | // } |
Umesh Krishnaswamy | 345ee99 | 2012-12-13 20:29:48 -0800 | [diff] [blame] | 307 | |
| 308 | @Override |
| 309 | public void cancelFeaturesReply(int transactionId) { |
| 310 | // TODO Auto-generated method stub |
| 311 | |
| 312 | } |
| 313 | |
Brian O'Connor | c67f9fa | 2014-08-07 18:17:46 -0700 | [diff] [blame^] | 314 | // @Override |
| 315 | // public int getBuffers() { |
| 316 | // // TODO Auto-generated method stub |
| 317 | // return 0; |
| 318 | // } |
| 319 | |
Umesh Krishnaswamy | 345ee99 | 2012-12-13 20:29:48 -0800 | [diff] [blame] | 320 | @Override |
Brian O'Connor | c67f9fa | 2014-08-07 18:17:46 -0700 | [diff] [blame^] | 321 | public Set<OFActionType> getActions() { |
| 322 | // TODO Auto-generated method stub |
| 323 | return null; |
| 324 | } |
| 325 | |
| 326 | @Override |
| 327 | public Set<OFCapabilities> getCapabilities() { |
| 328 | // TODO Auto-generated method stub |
| 329 | return null; |
| 330 | } |
| 331 | |
| 332 | // @Override |
| 333 | // public byte getTables() { |
| 334 | // // TODO Auto-generated method stub |
| 335 | // return 0; |
| 336 | // } |
| 337 | |
| 338 | @Override |
| 339 | public void disconnectSwitch() { |
| 340 | // TODO Auto-generated method stub |
| 341 | |
| 342 | } |
| 343 | |
| 344 | @Override |
| 345 | public void setChannel(Channel channel) { |
| 346 | // TODO Auto-generated method stub |
| 347 | |
| 348 | } |
| 349 | |
| 350 | @Override |
| 351 | public int getNumBuffers() { |
Umesh Krishnaswamy | 345ee99 | 2012-12-13 20:29:48 -0800 | [diff] [blame] | 352 | // TODO Auto-generated method stub |
| 353 | return 0; |
| 354 | } |
| 355 | |
| 356 | @Override |
Brian O'Connor | c67f9fa | 2014-08-07 18:17:46 -0700 | [diff] [blame^] | 357 | public byte getNumTables() { |
Umesh Krishnaswamy | 345ee99 | 2012-12-13 20:29:48 -0800 | [diff] [blame] | 358 | // TODO Auto-generated method stub |
| 359 | return 0; |
| 360 | } |
| 361 | |
| 362 | @Override |
Brian O'Connor | c67f9fa | 2014-08-07 18:17:46 -0700 | [diff] [blame^] | 363 | public OFDescStatsReply getSwitchDescription() { |
Umesh Krishnaswamy | 345ee99 | 2012-12-13 20:29:48 -0800 | [diff] [blame] | 364 | // TODO Auto-generated method stub |
Brian O'Connor | c67f9fa | 2014-08-07 18:17:46 -0700 | [diff] [blame^] | 365 | return null; |
Umesh Krishnaswamy | 345ee99 | 2012-12-13 20:29:48 -0800 | [diff] [blame] | 366 | } |
| 367 | |
| 368 | @Override |
Brian O'Connor | c67f9fa | 2014-08-07 18:17:46 -0700 | [diff] [blame^] | 369 | public void setOFVersion(OFVersion ofv) { |
Umesh Krishnaswamy | 345ee99 | 2012-12-13 20:29:48 -0800 | [diff] [blame] | 370 | // TODO Auto-generated method stub |
Brian O'Connor | c67f9fa | 2014-08-07 18:17:46 -0700 | [diff] [blame^] | 371 | |
| 372 | } |
| 373 | |
| 374 | @Override |
| 375 | public OFVersion getOFVersion() { |
| 376 | // TODO Auto-generated method stub |
| 377 | return null; |
| 378 | } |
| 379 | |
| 380 | @Override |
| 381 | public OFPortDesc getPort(int portNumber) { |
| 382 | // TODO Auto-generated method stub |
| 383 | return null; |
| 384 | } |
| 385 | |
| 386 | @Override |
| 387 | public OrderedCollection<PortChangeEvent> processOFPortStatus(OFPortStatus ps) { |
| 388 | // TODO Auto-generated method stub |
| 389 | return null; |
| 390 | } |
| 391 | |
| 392 | @Override |
| 393 | public boolean portEnabled(int portName) { |
| 394 | // TODO Auto-generated method stub |
| 395 | return false; |
| 396 | } |
| 397 | |
| 398 | @Override |
| 399 | public OrderedCollection<PortChangeEvent> comparePorts(Collection<OFPortDesc> ports) { |
| 400 | // TODO Auto-generated method stub |
| 401 | return null; |
| 402 | } |
| 403 | |
| 404 | @Override |
| 405 | public OrderedCollection<PortChangeEvent> setPorts(Collection<OFPortDesc> ports) { |
| 406 | // TODO Auto-generated method stub |
| 407 | return null; |
| 408 | } |
| 409 | |
| 410 | @Override |
| 411 | public void deliverStatisticsReply(OFMessage reply) { |
| 412 | // TODO Auto-generated method stub |
| 413 | |
| 414 | } |
| 415 | |
| 416 | @Override |
| 417 | public Future<List<OFStatsReply>> getStatistics(OFStatsRequest<?> request) |
| 418 | throws IOException { |
| 419 | // TODO Auto-generated method stub |
| 420 | return null; |
| 421 | } |
| 422 | |
| 423 | @Override |
| 424 | public void setRole(Role role) { |
| 425 | // TODO Auto-generated method stub |
| 426 | |
| 427 | } |
| 428 | |
| 429 | @Override |
| 430 | public U64 getNextGenerationId() { |
| 431 | // TODO Auto-generated method stub |
| 432 | return null; |
| 433 | } |
| 434 | |
| 435 | @Override |
| 436 | public void setFloodlightProvider(IFloodlightProviderService controller) { |
| 437 | // TODO Auto-generated method stub |
| 438 | |
| 439 | } |
| 440 | |
| 441 | @Override |
| 442 | public void setThreadPoolService(IThreadPoolService threadPool) { |
| 443 | // TODO Auto-generated method stub |
| 444 | |
| 445 | } |
| 446 | |
| 447 | @Override |
| 448 | public void setDebugCounterService(IDebugCounterService debugCounter) |
| 449 | throws CounterException { |
| 450 | // TODO Auto-generated method stub |
| 451 | |
| 452 | } |
| 453 | |
| 454 | @Override |
| 455 | public void startDriverHandshake() { |
| 456 | // TODO Auto-generated method stub |
| 457 | |
| 458 | } |
| 459 | |
| 460 | @Override |
| 461 | public boolean isDriverHandshakeComplete() { |
| 462 | // TODO Auto-generated method stub |
| 463 | return false; |
| 464 | } |
| 465 | |
| 466 | @Override |
| 467 | public void processDriverHandshakeMessage(OFMessage m) { |
| 468 | // TODO Auto-generated method stub |
| 469 | |
| 470 | } |
| 471 | |
| 472 | @Override |
| 473 | public void setTableFull(boolean isFull) { |
| 474 | // TODO Auto-generated method stub |
| 475 | |
Umesh Krishnaswamy | 345ee99 | 2012-12-13 20:29:48 -0800 | [diff] [blame] | 476 | } |
| 477 | |
Umesh Krishnaswamy | 345ee99 | 2012-12-13 20:29:48 -0800 | [diff] [blame] | 478 | } |