- Mar 05, 2020
-
-
Benjamin Bertrand authored
- Allow to use "-" in device type name - Add ALLOWED_SET_BOOT_PROFILE_DEVICE_TYPES variable - Rename MicroTCA to MTCA-AMC JIRA INFRA-1835 #action In Progress
-
- Nov 26, 2019
-
-
Benjamin Bertrand authored
Validation worked in the models because fullmatch is used but in the Regexp validators from wtforms, only match is called. The form validator didn't catch "AAA1100". Test added for this. JIRA INFRA-1569 #action In Progress
-
- Oct 24, 2019
-
-
Benjamin Bertrand authored
The interface name shall start by the host name. Its length must thus be longer than the host. JIRA INFRA-1324 #action In Progress
-
- Apr 03, 2019
-
-
Benjamin Bertrand authored
-
- Mar 05, 2019
-
-
Benjamin Bertrand authored
Tags were basically only used for IOCs. Tags were linked to the interface (and not the host). But for IOC we assume it should always be the main (first) interface. Using a field on the host table will make it more obvious for users. Created a IOC dynamic group type, to create a group including all IOCs JIRA INFRA-862 #action In Progress
-
- Jan 29, 2019
-
-
Benjamin Bertrand authored
The MAC field has both a Regexp and Unique validators. In wtforms, the validation doesn't stop on the first error (all validators are run). In case of invalid mac address, the Unique validator makes a request to the database that raises a DataError. This exception has to be catched. JIRA INFRA-777 #action In Progress
-
- Nov 06, 2018
-
-
Benjamin Bertrand authored
- Host names are unique (no 2 hosts with same name) - A host name shall not conflict with a cname or interface (if not main interface) - Interface names are unique (no 2 interfaces with same name) - An interface shall not conflict with a cname or host (if not assigned host) - cnames are only unique by domain (2 cnames can have the same name if different domains) - A cname shall not conflict with a host or interface - An interface has to be linked to a host Validation is implemented at the model level. Some is also implemented at the form level as it gives nicer feedback, but not all as it's a bit more complex when it requires check on several fields. JIRA INFRA-245
-
- Jul 06, 2018
-
- May 22, 2018
-
-
Benjamin Bertrand authored
Tags and device_types are used as key in Ansible roles. They shouldn't contain any spaces to avoid issues. JIRA INFRA-334
-
- Apr 23, 2018
-
-
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
-
- Mar 14, 2018
-
-
Benjamin Bertrand authored
This reverts commit 920b9bc5. Allowing cnames with different domains makes things too complex. The domain shall be the same as the host. See INFRA-242
-
- Mar 13, 2018
-
-
Benjamin Bertrand authored
Fix INFRA-242
-
- Dec 22, 2017
-
-
Benjamin Bertrand authored
One should be able to enter a MAC when creating/editing an interface.
-
- Dec 19, 2017
-
-
Benjamin Bertrand authored
Move regex to validators.py
-
Benjamin Bertrand authored
Used to validate a list of strings against a regular expresssion.
-
Benjamin Bertrand authored
To check if the unique object is the one being edited, we need to store the object used to create the form in the form (_obj). This is inspired from flask-admin.
-