1. 24 Apr, 2016 1 commit
    • Zenon Mousmoulas's avatar
      Refactor views.utils.create_links_dict() for speed · 11c2cfc0
      Zenon Mousmoulas authored
      This iterates through all Link interfaces (in the typical use case this means
      all backbone interfaces, which can be a lot) and searches for all DataSources
      (via ifce.as_dict() -> ifce.get_datasources()), which hits the database with
      (somewhat) expensive queries, one for each ifce.
      Refactor so the database is hit only once with a list of ifce IDs, using a
      larger query which is considerably faster than the previous alternative.
      However this inevitably means sacrificing Django QuerySet semantics.
  2. 22 Apr, 2016 1 commit
  3. 07 Apr, 2016 4 commits
    • Sergios Aftsidis's avatar
      [RG-n2ntraffic] Replace reverse with get_draw_url · fa8d1f59
      Sergios Aftsidis authored
      Reverse resolution of graph's pngs has been replaced with
      calls to graph.get_draw_url(). Directly referencing these
      pngs is not necessary since the get_graw_url() returns
      the '/draw/static' mapping which caches the pngs as well.
    • Sergios Aftsidis's avatar
      [RG-n2ntraffic] Add get_graph_for_node_link · 5fd9db35
      Sergios Aftsidis authored
      This new function implements the previous functionality that
      views/api:link() had. It no longer uses 'Links' objects to
      resolve a node link, but directly searches for the required
      'Graph' object. Then, if the 'separate' argument is provided,
      calls graph_for_each interface' to get all the separate graphs
      that form this aggregation, otherwise just returns the png of
      the aggregate graph using a reverse url resolution of 'get-png-data'.
    • Sergios Aftsidis's avatar
      [RG-n2ntraffic] Change graph_for_each_interface · bdf1c05d
      Sergios Aftsidis authored
      Function has been altered to use the newly implemented logic.
      The aggregate graph (Total)  is aquired with a reverse call
      to get-png-data. Parameters start, end have been removed
      as we do not want to create graphs dynamically any longer.
    • Sergios Aftsidis's avatar
      [RG-n2ntraffic] Import Graph model · 727e5d74
      Sergios Aftsidis authored
  4. 09 Mar, 2016 1 commit
  5. 25 Feb, 2016 3 commits
  6. 10 Dec, 2015 2 commits
  7. 30 Oct, 2015 1 commit