public class OplinkRoadm extends AbstractOpenFlowSwitch implements OpenFlowOpticalSwitch
channelId, desc, features, log, meterfeatures, ports, role, startDriverHandshakeCalled, tableFull| Constructor and Description |
|---|
OplinkRoadm() |
| Modifier and Type | Method and Description |
|---|---|
org.onosproject.net.Device.Type |
deviceType()
Returns the switch device type.
|
List<org.projectfloodlight.openflow.protocol.OFPortDesc> |
getPorts()
Fetches the ports of this switch.
|
List<? extends org.projectfloodlight.openflow.protocol.OFObject> |
getPortsOf(PortDescPropertyType type)
Return a list of interfaces (ports) of the type associated with this
OpenFlow switch.
|
Set<PortDescPropertyType> |
getPortTypes()
Returns the port property types supported by the driver implementing this
interface.
|
boolean |
isDriverHandshakeComplete()
Checks whether the driver specific handshake is complete.
|
void |
processDriverHandshakeMessage(org.projectfloodlight.openflow.protocol.OFMessage m)
Process a message during the driver specific handshake.
|
List<org.onosproject.net.device.PortDescription> |
processExpPortStats(org.projectfloodlight.openflow.protocol.OFMessage msg)
Returns updated PortDescriptions built from experimenter message
received from device.
|
void |
sendMsg(org.projectfloodlight.openflow.protocol.OFMessage m)
Writes the message to the driver.
|
void |
startDriverHandshake()
Starts the driver specific handshake process.
|
Boolean |
supportNxRole()
Does this switch support Nicira Role messages.
|
activateEqualSwitch, activateMasterSwitch, channelId, connectSwitch, datapathDescription, disconnectSwitch, factory, getId, getNextTransactionId, getRole, getStringId, handleMessage, handleNiciraRole, handleRole, handleRoleError, hardwareDescription, init, isConnected, manufacturerDescription, reassertRole, removeConnectedSwitch, returnRoleReply, sendHandshakeMessage, sendMsg, sendRoleRequest, serialNumber, setAgent, setChannel, setConnected, setFeaturesReply, setMeterFeaturesReply, setOFVersion, setPortDescReplies, setPortDescReply, setRole, setRoleHandler, setSwitchDescription, setTableFull, softwareDescription, toString, transitionToEqualSwitch, transitionToMasterSwitchhandler, setHandlerclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitchannelId, datapathDescription, disconnectSwitch, factory, getId, getRole, getStringId, handleMessage, hardwareDescription, isConnected, manufacturerDescription, returnRoleReply, sendMsg, serialNumber, setRole, softwareDescriptionpublic List<? extends org.projectfloodlight.openflow.protocol.OFObject> getPortsOf(PortDescPropertyType type)
WithTypedPortsgetPortsOf in interface WithTypedPortstype - The port description property type of requested portspublic List<org.projectfloodlight.openflow.protocol.OFPortDesc> getPorts()
OpenFlowSwitchgetPorts in interface OpenFlowOpticalSwitchgetPorts in interface OpenFlowSwitchgetPorts in class AbstractOpenFlowSwitchpublic Set<PortDescPropertyType> getPortTypes()
WithTypedPortsgetPortTypes in interface WithTypedPortspublic Boolean supportNxRole()
OpenFlowSwitchDriversupportNxRole in interface OpenFlowSwitchDriversupportNxRole in class AbstractOpenFlowSwitchpublic void startDriverHandshake()
OpenFlowSwitchDriverstartDriverHandshake in interface OpenFlowSwitchDriverstartDriverHandshake in class AbstractOpenFlowSwitchpublic boolean isDriverHandshakeComplete()
OpenFlowSwitchDriverisDriverHandshakeComplete in interface OpenFlowSwitchDriverisDriverHandshakeComplete in class AbstractOpenFlowSwitchpublic void processDriverHandshakeMessage(org.projectfloodlight.openflow.protocol.OFMessage m)
OpenFlowSwitchDriverprocessDriverHandshakeMessage in interface OpenFlowSwitchDriverprocessDriverHandshakeMessage in class AbstractOpenFlowSwitchm - the message to process.public org.onosproject.net.Device.Type deviceType()
OpenFlowSwitchdeviceType in interface OpenFlowSwitchdeviceType in class AbstractOpenFlowSwitchpublic final void sendMsg(org.projectfloodlight.openflow.protocol.OFMessage m)
OpenFlowSwitchNote: Messages may be silently dropped/lost due to IOExceptions or role. If this is a concern, then a caller should use barriers.
sendMsg in interface OpenFlowSwitchsendMsg in class AbstractOpenFlowSwitchm - the message to writepublic List<org.onosproject.net.device.PortDescription> processExpPortStats(org.projectfloodlight.openflow.protocol.OFMessage msg)
OpenFlowOpticalSwitchprocessExpPortStats in interface OpenFlowOpticalSwitchmsg - OpenFlow message from device.