1. 23 May, 2014 1 commit
    • Dimitris Aragiorgis's avatar
      Fix QueryNetworks wrt instances · 96092119
      Dimitris Aragiorgis authored
      QueryNetworks tries to find which instances are connected to which
      networks. The query mechanism in Haskell was written back when NICs
      referred to a network via its name and not its UUID. Fix luxi to
      comply with the current implementation (network slot of NIC object
      is a UUID).
      Fix old style query mechanism to return a list of names instead of
      UUIDs for the instances that are connected to a network.
      Signed-off-by: default avatarDimitris Aragiorgis <dimara@grnet.gr>
      Reviewed-by: default avatarHelga Velroyen <helgav@google.com>
  2. 16 Jul, 2013 1 commit
  3. 12 Mar, 2013 2 commits
  4. 04 Mar, 2013 2 commits
    • Iustin Pop's avatar
      Abstract the individual query functions · d5b2753a
      Iustin Pop authored
      After implementing a few of the query executor functions, it turns out
      that we have the same general pattern:
      - compile the filter
      - extract the selected fields
      - determine whether we need to run collectors
      - do a first pass filtering
      - run the collector if needed
      - compute the final fields
      For pure config queries, the collector/final computation is not
      needed, but otherwise the code flow is the same.
      We can therefore abstract all the queries that originate in the config
      (i.e. except the job query) and have a single code path for all of
      them, just with different parameters.
      To do this, we add some stub collectors for group/network queries,
      which don't have live data.
      Signed-off-by: default avatarIustin Pop <iustin@google.com>
      Reviewed-by: default avatarGuido Trotter <ultrotter@google.com>
    • Iustin Pop's avatar
      Rename/make uniform the other query entities · 36162faf
      Iustin Pop authored
      Following the new naming style introduced in Exports.hs, this patch
      renames the other resources to export non-qualified names (fieldMap as
      opposed to nodeFieldMap), and to use qualified module imports.
      Also fixes a haddock issue in a docstring.
      Signed-off-by: default avatarIustin Pop <iustin@google.com>
      Reviewed-by: default avatarGuido Trotter <ultrotter@google.com>
  5. 18 Feb, 2013 1 commit
  6. 05 Feb, 2013 1 commit
  7. 29 Jan, 2013 2 commits
  8. 25 Jan, 2013 1 commit
  9. 24 Jan, 2013 1 commit