Jonathan Hart
Committed by Gerrit Code Review

Classify PicOS switches as OVS otherwise no roles requests are sent

Change-Id: I2a36b77d73c1ef0ba9110623b1e8bfd1d2ca240a
...@@ -59,6 +59,7 @@ public final class DriverManager implements OpenFlowSwitchDriverFactory { ...@@ -59,6 +59,7 @@ public final class DriverManager implements OpenFlowSwitchDriverFactory {
59 OFDescStatsReply desc, OFVersion ofv) { 59 OFDescStatsReply desc, OFVersion ofv) {
60 String vendor = desc.getMfrDesc(); 60 String vendor = desc.getMfrDesc();
61 String hw = desc.getHwDesc(); 61 String hw = desc.getHwDesc();
62 + String sw = desc.getSwDesc();
62 63
63 if (dpid.equals(corsaDpid)) { 64 if (dpid.equals(corsaDpid)) {
64 if (hw.startsWith("Open vSwitch")) { 65 if (hw.startsWith("Open vSwitch")) {
...@@ -90,7 +91,12 @@ public final class DriverManager implements OpenFlowSwitchDriverFactory { ...@@ -90,7 +91,12 @@ public final class DriverManager implements OpenFlowSwitchDriverFactory {
90 } 91 }
91 } 92 }
92 93
93 - String sw = desc.getSwDesc(); 94 + if (vendor.equals("Pica8, Inc.") && sw.startsWith("PicOS") &&
95 + ofv == OFVersion.OF_13) {
96 + return new OFSwitchImplOVS13(dpid, desc);
97 + }
98 +
99 +
94 if (sw.startsWith("LINC-OE")) { 100 if (sw.startsWith("LINC-OE")) {
95 log.warn("Optical Emulator LINC-OE with DPID:{} found..", dpid); 101 log.warn("Optical Emulator LINC-OE with DPID:{} found..", dpid);
96 return new OFOpticalSwitchImplLINC13(dpid, desc); 102 return new OFOpticalSwitchImplLINC13(dpid, desc);
......