Praseed Balakrishnan

LINC-OE Optical Switch Driveri changes

...@@ -30,7 +30,7 @@ ...@@ -30,7 +30,7 @@
30 <groupId>org.projectfloodlight</groupId> 30 <groupId>org.projectfloodlight</groupId>
31 <artifactId>openflowj</artifactId> 31 <artifactId>openflowj</artifactId>
32 <!-- FIXME once experimenter gets merged to upstream --> 32 <!-- FIXME once experimenter gets merged to upstream -->
33 - <version>0.3.8-optical_experimenter</version> 33 + <version>0.3.8-optical_experimenter2</version>
34 </dependency> 34 </dependency>
35 <dependency> 35 <dependency>
36 <groupId>io.netty</groupId> 36 <groupId>io.netty</groupId>
......
...@@ -57,6 +57,12 @@ public final class DriverManager implements OpenFlowSwitchDriverFactory { ...@@ -57,6 +57,12 @@ public final class DriverManager implements OpenFlowSwitchDriverFactory {
57 } 57 }
58 } 58 }
59 59
60 + String sw = desc.getSwDesc();
61 + if (sw.startsWith("LINC-OE")) {
62 + log.debug("Optical Emulator LINC-OE with DPID:{} found..",dpid);
63 + return new OFOpticalSwitchImplLINC13(dpid,desc);
64 + }
65 +
60 log.warn("DriverManager could not identify switch desc: {}. " 66 log.warn("DriverManager could not identify switch desc: {}. "
61 + "Assigning AbstractOpenFlowSwich", desc); 67 + "Assigning AbstractOpenFlowSwich", desc);
62 return new AbstractOpenFlowSwitch(dpid, desc) { 68 return new AbstractOpenFlowSwitch(dpid, desc) {
......