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

Simplifying error messages for regex validations. #174

Closed
navaneethyv opened this issue Feb 6, 2021 · 1 comment
Closed

Simplifying error messages for regex validations. #174

navaneethyv opened this issue Feb 6, 2021 · 1 comment

Comments

@navaneethyv
Copy link

When there is a data validation error due to regex validation, the below format will be seen.

cfg> set instance ip2vrf protocol isis system-id aadd.tttt.srtc
CLI syntax error: "set instance ip2vrf protocol isis system-id aadd.tttt.srtc": regexp match fail: aadd.tttt.srtc does not match ^[0-9A-Fa-f]{4}\.[0-9A-Fa-f]{4}\.[0-9A-Fa-f]{4}

The regexes may them selves be complicated. This serves a good purpose to the developer, but from a usability point of view a simpler.

CLI syntax error: "set instance ip2vrf protocol isis system-id aadd.tttt.srtc": aadd.tttt.srtc  is Invalid input for <leaf name> .
@olofhagsand
Copy link
Member

Implemented

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

No branches or pull requests

2 participants