Fix usage of mac address patterns in schema.py to allow using variables
Maintainers usually reply within 1 day
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 42/100
- Issue type
- Bug
- Clarity
- Mostly clear
- Activity status
- Stale
- Tech stack
- python
- Domain
- networking
Research direction
Start in schema.py and reproduce the save operation using the station WiFi configuration shown in the issue, focusing on the MAC address pattern handling for the BSSID field. Done means a variable in BSSID remains intact after saving and the resulting configuration remains valid JSON.
Written by the indexing model from the issue text.
Description
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,
{
"wireless": {
"network": [
"lan"
],
"mode": "station",
"radio": "radio1",
"ssid": "{{wireless_wlan0sta_ssid}}",
"bssid": "00:11:22:33:44:55",
"wds": true,
"encryption": {
"protocol": "wpa2_personal",
"key": "{{wireless_wlan0sta_key}}",
"cipher": "ccmp",
"ieee80211w": "1"
}
},
"type": "wireless",
"name": "radio1sta",
"network": "wlan1sta"
},
becomes
{
"type": "ethernet",
"name": "radio1sta",
"network": "wlan1sta",
"wireless": {
"network": [
"lan"
],
"mode": "station",
"radio": "radio1",
"ssid": "{{wireless_wlan1sta_ssid}}",
"bssid": "{{wireless_wlan1sta_bsid}}",
"wds": true,
"encryption": {
"protocol": "wpa2_personal",
"key": "{{wireless_wlan1sta_key}}",
"cipher": "ccmp",
"ieee80211w": "1"
}
}
}
I haven't looked at the code but i can try make a PR sometime later if i find the issue
- Dominant language
- Python
- Stars
- 389
- Forks
- 97
- Avg merge
- 1d 14m
- Merged PRs (30d)
- 14
Getting set up
- No Dockerfile or Docker Compose file
- Has a pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from openwisp/netjsonconfig
-
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
openwisp/netjsonconfig#443 ·
Maintainers usually reply within 1 day
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
openwisp/netjsonconfig#131 ·
Maintainers usually reply within 1 day
-
wireguard_auto_client hardcodes IPv4 family/mask, and the ipv6 schema branch rejects template variablesMay be free again A pull request for this issue was closed without being merged. Open
Difficulty 3/5 1-2 days Newbie friendliness 72/100
openwisp/netjsonconfig#406 ·
Maintainers usually reply within 1 day
-
[bug] Property name of VXLAN interfaceMay be free again @SajalDevX claimed this 59 days ago, and no pull request is open. Openbug
Difficulty 3/5 1-2 days Newbie friendliness 48/100
openwisp/netjsonconfig#373 · 1 comment ·
Maintainers usually reply within 1 day
-
BATMAN-adv and 802.11s Mesh Interface SupportMay be free again A pull request for this issue was closed without being merged. Openenhancement
Difficulty 5/5 Over a week Newbie friendliness 30/100
openwisp/netjsonconfig#368 · 1 comment ·
Maintainers usually reply within 1 day
All issues in openwisp/netjsonconfig
Similar issues
-
MarkdownDocSerializer.post_process escapes '\<' to '\<', rendering literal '<' in CommonMarkOpen
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
docling-project/docling-core#1067 ·
Maintainers usually reply within 3 days
-
correction metadata
Difficulty 1/5 Under an hour Newbie friendliness 85/100
acl-org/acl-anthology#11101 · 1 comment ·
Maintainers usually reply within 1 day
-
[BUG] crewai tool create/install/login exit 0 when they failPossibly taken @Kiko0301 claimed this today. Open
Difficulty 2/5 1-3 hours Newbie friendliness 85/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
vllm-project/compressed-tensors#1033 ·
Maintainers usually reply within 3 days
-
chore kaizen ui-rewrite
Difficulty 2/5 1-3 hours Newbie friendliness 64/100
IBM/mcp-context-forge#7681 ·
Maintainers usually reply within 2 days