Class JuniperSwitchHandshaker

  • All Implemented Interfaces:
    org.onosproject.net.driver.Behaviour, org.onosproject.net.driver.HandlerBehaviour, org.onosproject.openflow.controller.driver.OpenFlowSwitchDriver, org.onosproject.openflow.controller.OpenFlowSwitch

    public class JuniperSwitchHandshaker
    extends org.onosproject.openflow.controller.driver.AbstractOpenFlowSwitch
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected org.slf4j.Logger log  
      • Fields inherited from class org.onosproject.openflow.controller.driver.AbstractOpenFlowSwitch

        channelId, classifierListener, role, startDriverHandshakeCalled
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void handleRole​(org.projectfloodlight.openflow.protocol.OFMessage m)  
      boolean isDriverHandshakeComplete()  
      void processDriverHandshakeMessage​(org.projectfloodlight.openflow.protocol.OFMessage m)  
      void setRole​(org.onosproject.openflow.controller.RoleState role)  
      void startDriverHandshake()  
      java.lang.Boolean supportNxRole()  
      • Methods inherited from class org.onosproject.openflow.controller.driver.AbstractOpenFlowSwitch

        activateEqualSwitch, activateMasterSwitch, channelId, connectSwitch, datapathDescription, deviceType, disconnectSwitch, factory, features, getDpid, getId, getMeterFeatures, getNextTransactionId, getPorts, getRole, getStringId, handleMessage, handleNiciraRole, handleRoleError, hardwareDescription, init, isConnected, manufacturerDescription, portDescs, reassertRole, removeConnectedSwitch, replacePortDescsWith, returnRoleReply, sendHandshakeMessage, sendMsg, sendMsg, sendRoleRequest, serialNumber, setAgent, setChannel, setConnected, setFeaturesReply, setMeterFeaturesReply, setOFVersion, setPortDescReplies, setPortDescReply, setRoleHandler, setSwitchDescription, setTableFull, softwareDescription, toString, transitionToEqualSwitch, transitionToMasterSwitch
      • Methods inherited from class org.onosproject.net.driver.AbstractHandlerBehaviour

        handler, setHandler
      • Methods inherited from class org.onosproject.net.driver.AbstractBehaviour

        data, setData
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
      • Methods inherited from interface org.onosproject.net.driver.Behaviour

        data, setData
      • Methods inherited from interface org.onosproject.net.driver.HandlerBehaviour

        handler, setHandler
    • Field Detail

      • log

        protected final org.slf4j.Logger log
    • Constructor Detail

      • JuniperSwitchHandshaker

        public JuniperSwitchHandshaker()
    • Method Detail

      • supportNxRole

        public java.lang.Boolean supportNxRole()
        Specified by:
        supportNxRole in interface org.onosproject.openflow.controller.driver.OpenFlowSwitchDriver
        Specified by:
        supportNxRole in class org.onosproject.openflow.controller.driver.AbstractOpenFlowSwitch
      • startDriverHandshake

        public void startDriverHandshake()
        Specified by:
        startDriverHandshake in interface org.onosproject.openflow.controller.driver.OpenFlowSwitchDriver
        Specified by:
        startDriverHandshake in class org.onosproject.openflow.controller.driver.AbstractOpenFlowSwitch
      • isDriverHandshakeComplete

        public boolean isDriverHandshakeComplete()
        Specified by:
        isDriverHandshakeComplete in interface org.onosproject.openflow.controller.driver.OpenFlowSwitchDriver
        Specified by:
        isDriverHandshakeComplete in class org.onosproject.openflow.controller.driver.AbstractOpenFlowSwitch
      • processDriverHandshakeMessage

        public void processDriverHandshakeMessage​(org.projectfloodlight.openflow.protocol.OFMessage m)
        Specified by:
        processDriverHandshakeMessage in interface org.onosproject.openflow.controller.driver.OpenFlowSwitchDriver
        Specified by:
        processDriverHandshakeMessage in class org.onosproject.openflow.controller.driver.AbstractOpenFlowSwitch
      • setRole

        public void setRole​(org.onosproject.openflow.controller.RoleState role)
        Specified by:
        setRole in interface org.onosproject.openflow.controller.OpenFlowSwitch
        Overrides:
        setRole in class org.onosproject.openflow.controller.driver.AbstractOpenFlowSwitch
      • handleRole

        public void handleRole​(org.projectfloodlight.openflow.protocol.OFMessage m)
                        throws org.onosproject.openflow.controller.driver.SwitchStateException
        Specified by:
        handleRole in interface org.onosproject.openflow.controller.driver.OpenFlowSwitchDriver
        Overrides:
        handleRole in class org.onosproject.openflow.controller.driver.AbstractOpenFlowSwitch
        Throws:
        org.onosproject.openflow.controller.driver.SwitchStateException