Rimon Ashkenazy
Committed by Gerrit Code Review

Add support for openflow Optical OTN switch

Change-Id: Ied0a1621b64033bd0b62521c2b6bf42ba701ca53
......@@ -144,7 +144,16 @@ public class OFOpticalSwitch13 extends AbstractOpenFlowSwitch implements OpenFlo
@Override
public Device.Type deviceType() {
String hwDesc = hardwareDescription();
switch (hwDesc) {
case "Optical-ROADM":
return Device.Type.ROADM;
case "Optical-OTN":
return Device.Type.OTN;
default:
log.error("Unsupported hardwareDescription {}", hwDesc);
return Device.Type.OTHER;
}
}
/*
......
......@@ -138,7 +138,7 @@
impl="org.onosproject.driver.pipeline.OpenVSwitchPipeline"/>
</driver>
<driver name="eci" extends="default"
manufacturer="ECI Telecom" hwVersion="optical" swVersion="V_1_0">
manufacturer="ECI Telecom" hwVersion="Optical.*" swVersion="V_1_0">
<behaviour api="org.onosproject.openflow.controller.driver.OpenFlowSwitchDriver"
impl="org.onosproject.driver.handshaker.OFOpticalSwitch13"/>
</driver>
......