Skip to content
Snippets Groups Projects
  1. Jul 02, 2018
  2. May 23, 2018
  3. May 22, 2018
  4. Apr 23, 2018
    • Benjamin Bertrand's avatar
      Add stack_member field to item · ce031db6
      Benjamin Bertrand authored
      This is to be used for stack of switches only
      
      - a stack_member is linked to an host (device_type has to be "Switch")
      - a stack_member is an integer between 0 and 9 (included) or can be None
      - the couple (host_id, stack_member) must be unique
      
      JIRA INFRA-267
      ce031db6
  5. Apr 20, 2018
  6. Apr 10, 2018
  7. Apr 09, 2018
    • Benjamin Bertrand's avatar
      Add attributes favorites page · 3050ce17
      Benjamin Bertrand authored
      - create many-to-many relationships between the user table and
      attributes tables (manufacturer / model / location / status / action)
      - add a checkbox as the first column of the attributes table to add or
      remove an attribute to the favorites
      - add a new page to display the favorite attributes
      
      JIRA INFRA-283
      3050ce17
  8. Apr 06, 2018
  9. Mar 13, 2018
  10. Mar 07, 2018
    • Benjamin Bertrand's avatar
      Accept a list of LDAP groups · 89a98b9b
      Benjamin Bertrand authored
      Not everyone at ICS is part of the 'ICS Employees' AD group.
      We have to accept 'ICS Consultants' as well.
      
      The CSENTRY_LDAP_GROUPS settings now takes a list of groups instead of
      just one.
      
      Remove unused is_member_of_all_groups method.
      
      Fixes INFRA-225
      89a98b9b
  11. Feb 28, 2018
  12. Feb 26, 2018
    • Benjamin Bertrand's avatar
      Fix broken test · 815463b9
      Benjamin Bertrand authored
      Fix error:
      User instance is not bound to a Session; attribute refresh operation cannot proceed
      815463b9
  13. Feb 23, 2018
  14. Feb 12, 2018
    • Benjamin Bertrand's avatar
      Allow admin to create interface outside range · a653f0d9
      Benjamin Bertrand authored
      The network range defines the IP to be allocated.
      This is to reserve some specific addresses (for gateway for example).
      
      An admin user should be able to define an interface outside the network
      range.
      
      The IP address select field was replaced with a string field
      (initialized to the first available IP).
      
      Fixes INFRA-200
      a653f0d9
  15. Feb 09, 2018
    • Benjamin Bertrand's avatar
      Add domain table · f627e2c9
      Benjamin Bertrand authored
      - add domain_id on NetworkScope table to define a default domain
      - add domain_id on Network (default to the Network Scope one)
      
      Fixes INFRA-194
      f627e2c9
  16. Feb 02, 2018
  17. Jan 18, 2018
  18. Jan 16, 2018
  19. Jan 12, 2018
    • Benjamin Bertrand's avatar
      v0.5.3
      ef44731e
    • Benjamin Bertrand's avatar
      Fix inconsistency in interface creation · a3c407f4
      Benjamin Bertrand authored
      The string representation of a Network is the vlan_name.
      This is what we should allow to pass as string to create an interface.
      
      Note that if we pass network_id instead of network when creating
      and interface, the validate_interfaces method from the Network class
      is not called.
      a3c407f4
    • Benjamin Bertrand's avatar
      Cache user retrieval · 0efae3a3
      Benjamin Bertrand authored
      The user_id is stored in the flask session. On every page load, we query
      the database to get:
      - the user objet (user_account table)
      - the user's groups (group table) to know what the user can access
      
      If we try to cache the user_load function, the following error is raised
      when retrieving the groups:
      sqlalchemy.orm.exc.DetachedInstanceError: Parent instance <User at
      0x7f51e050a940> is not bound to a Session; lazy load operation of
      attribute 'grp' cannot proceed
      
      The groups from AD are only stored to map them with CSENTRY_LDAP_GROUPS.
      We don't do any query on them (get all users from one group).
      As we always query them with one user, it's more efficient to store them
      in the user_account table as an array than in a separate table.
      This allows to easily cache the load_user function.
      
      Note that we have to remember to add the current_user to the sqlalchemy session if
      we want to modify it or access a relationship (like tokens)!
      
      The load_user function is now cached for 30 minutes. This decreases a
      lot the number of database queries.
      
      Fix INFRA-156
      0efae3a3
  20. Jan 03, 2018
  21. Jan 02, 2018
  22. Dec 22, 2017
  23. Dec 21, 2017
  24. Dec 20, 2017
  25. Dec 19, 2017
Loading