Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Validation of user input for switches, interfaces and links #37

Open
italovalcy opened this issue Apr 30, 2021 · 0 comments
Open

Validation of user input for switches, interfaces and links #37

italovalcy opened this issue Apr 30, 2021 · 0 comments

Comments

@italovalcy
Copy link
Contributor

When we create a new maintenance window, the user input parameters are not validated: the only check is to make sure the item under MW is a link, interface, or switch (instance_of). It would be nice if we also check if the requested item is an actual existing switch, link, or interface in the topology.

The use case for that is: when the administrator creates a MW with a wrong switch id, for instance, it has no means to know that it was wrong (look at what was happening with the end-to-end tests: https://github.com/amlight/kytos-end-to-end-tests/pull/40/files#diff-cf70db90507ca6705079eaa8362c1b100d07ec22e3b188f8d69c56ce7a4793eaR75)

There may be cases where the administrator can create a MW for future equipment, so it would be nice to allow skip the validation with an option like force (which could also ignore the validations for start/end time - if you will)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant