code: def floating_ip_associate(name, kwargs, call=None):
      '''
      Associate a floating IP address to a server
  
      .. versionadded:: 2016.3.0
      '''
      if call != 'action':
          raise SaltCloudSystemExit(
              'The floating_ip_associate action must be called with -a of --action.'
          )
  
      if 'floating_ip' not in kwargs:
          log.error('floating_ip is required')
          return False
  
      conn = get_conn()
      conn.floating_ip_associate(name, kwargs['floating_ip'])
      return list_nodes()[namef floating_ip_associate(name, kwargs, call=None):
      '''
      Associate a floating IP address to a server
  
      .. versionadded:: 2016.3.0
      '''
      if call != 'action':
          raise SaltCloudSystemExit(
              'The floating_ip_associate action must be called with -a of --action.'
          )
  
      if 'floating_ip' not in kwargs:
          log.error('floating_ip is required')
          return False
  
      conn = get_conn()
      conn.floating_ip_associate(name, kwargs['floating_ip'])
      return list_nodes()[name]
docs: Associate a floating IP address to a server
  
      .. versionadded:: 2016.3.0