-
-
Notifications
You must be signed in to change notification settings - Fork 72
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
Fix usage of mac address patterns in schema.py to allow using variables #238
Comments
@lpalgarvio I am not sure I understood this, I shall try asap. |
What i mean to explain is that if you write the first configuration via UI or paste it and then save it, The templating is broken when a variable is used on the bssid field. |
The cause is likely this:
the pattern and maxLength being used there will probably not allow for a variable. Other places where this can be a problem:
Maybe we can just fix the formula here:
and remove maxLength. |
The new regex expression suggests this will work fine: https://regex101.com/ Test cases (first is a blank line):
|
…es (Closes openwisp#238) - Adds BLANK and VAR patterns - Patches MAC patterns - Removes usage of maxLength and minLength in mac and bssid properties
PR provided :) |
…#238) - Adds BLANK and VAR patterns - Patches MAC patterns - Removes usage of maxLength and minLength in mac and bssid properties Co-authored-by: Gagan Deep <the.one.above.all.titan@gmail.com>
…enwisp#238) - Adds BLANK and VAR patterns - Patches MAC patterns - Removes usage of maxLength and minLength in mac and bssid properties Co-authored-by: Gagan Deep <the.one.above.all.titan@gmail.com>
Hello,
Everytime i try to add a variable to BSSID field on a WiFi interface configured as station,
It breaks the JSON configuration after/during saving.
ie,
becomes
I haven't looked at the code but i can try make a PR sometime later if i find the issue
The text was updated successfully, but these errors were encountered: