<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def list_floating_ip_actions(self, ip_addr):
 """ Retrieve a list of all actions that have been executed on a Floating IP. """

        if self.api_version == 2:
            json = self.request('/floating_ips/' + ip_addr + '/actions')
            return json['actions']
        else:
            raise DoError(v2_api_required_str)