Closed loulecrivain closed 2 weeks ago
I am thinking about refactoring Errors all along. Introducing a DeviceError which can get caught on device loop level and gets the device ignored and the error message printed, a InterfaceError for the interface loop which gets the interface ignored and a FatalError which stops execution and does not create artifacts.
Do we want to wait until we start refactoring everything, or do you want to implement it now ?
There's only one portion of the RouterSerializer for which we still have to write tests (QoS stuff iirc), but idk how urgent this change is, and if we can wait for the refactor to be completed.
Include a print error message for now and we will rework it later.
Currently we have this error when a device has no lo0 parent:
we should introduce a better error message for this specific case, such as the operator can quickly identify the issue and correct it from the datasource
also, a test case would be needed to make sure future refactoring does not omit this.