code: def interface(iface):
      '''
      Return the details of `iface` or an error if it does not exist
      '''
      iface_info, error = _get_iface_info(iface)
  
      if error is False:
          return iface_info.get(iface, {}).get('inet', '')
      else:
          return errof interface(iface):
      '''
      Return the details of `iface` or an error if it does not exist
      '''
      iface_info, error = _get_iface_info(iface)
  
      if error is False:
          return iface_info.get(iface, {}).get('inet', '')
      else:
          return error
docs: Return the details of `iface` or an error if it does not exist