Open Kilda Java Documentation
org.openkilda.floodlight.SwitchUtils Class Reference

Public Member Functions

 SwitchUtils (IOFSwitchService switchService)
 
IOFSwitch lookupSwitch (DatapathId dpId)
 
MacAddress dpIdToMac (final IOFSwitch sw)
 
MacAddress dpIdToMac (final DatapathId dpId)
 

Detailed Description

Definition at line 25 of file SwitchUtils.java.

Constructor & Destructor Documentation

◆ SwitchUtils()

org.openkilda.floodlight.SwitchUtils.SwitchUtils ( IOFSwitchService  switchService)

Definition at line 28 of file SwitchUtils.java.

Member Function Documentation

◆ dpIdToMac() [1/2]

MacAddress org.openkilda.floodlight.SwitchUtils.dpIdToMac ( final IOFSwitch  sw)

Definition at line 47 of file SwitchUtils.java.

◆ dpIdToMac() [2/2]

MacAddress org.openkilda.floodlight.SwitchUtils.dpIdToMac ( final DatapathId  dpId)

Definition at line 51 of file SwitchUtils.java.

◆ lookupSwitch()

IOFSwitch org.openkilda.floodlight.SwitchUtils.lookupSwitch ( DatapathId  dpId)

Locate IOFSwitch object by provided DatapathId.

Parameters
dpIdDatapathId switch it
Returns
IOFSwitch target switch
Exceptions
IllegalArgumentExceptionif switch not found

Definition at line 39 of file SwitchUtils.java.


The documentation for this class was generated from the following file: