class CumulusTorSwitchService implements ISwitchService {

    @Override
    public SwitchPort getSwitchPort( SwitchNode switchNode, String portName )
    {
        SwitchPort retPort = null;

        if ( portName != null && !portName.trim().equals( "" ) )
        {
            List<SwitchPort> allPorts = getSwitchPortListBulk( switchNode );
            for ( SwitchPort port : allPorts )
            {
                if ( portName.trim().equalsIgnoreCase( port.getName() ) )
                {
                    retPort = port;
                }
            }
        }

        return ( retPort );
    }

}