code: def _get_interface_info(interface):
      '''
      return details about given interface
      '''
      adapter_mode = _get_adapter_mode_info(interface.name)
      if adapter_mode == 'disabled':
          return _get_base_interface_info(interface)
      elif adapter_mode == 'ethercat':
          return _get_ethercat_interface_info(interface)
      return _get_tcpip_interface_info(interfacef _get_interface_info(interface):
      '''
      return details about given interface
      '''
      adapter_mode = _get_adapter_mode_info(interface.name)
      if adapter_mode == 'disabled':
          return _get_base_interface_info(interface)
      elif adapter_mode == 'ethercat':
          return _get_ethercat_interface_info(interface)
      return _get_tcpip_interface_info(interface)
docs: return details about given interface