openwisp / openwisp/netjsonconfig

[bug] Property name of VXLAN interface

Open
#373 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
Dominant language
Python
Stars
388
Forks
87
Avg merge
1h 26m
Merged PRs (30d)
4

Description

Describe the bug
The required property "name" of a VXLAN interface renders to "ifname" in the OpenWRT configuration, which causes luci to convert it to "device".

Steps To Reproduce
Steps to reproduce the behavior:

  1. Go to 'Templates'
  2. Click on '+ Add template'
  3. Scroll down to 'Configuration Menu'
  4. Check checkbox 'Interfaces'
  5. Click 'Add Interface'
  6. Choose type 'VXLAN' and fill in required information
  7. Save and assign to a device
  8. Open luci on selected device
  9. Navigate to Network --> Interfaces
  10. See the following error:
The existing network configuration needs to be changed for LuCI to function properly.

Upon pressing "Continue", ifname options will get renamed and the network will be restarted to apply the updated configuration. 

Expected behavior
It would be better to render directly to 'device' and not to 'ifname'.

Screenshots
If applicable, add screenshots to help explain your problem.

System Information:

  • OS: [Debian 12]
  • Python Version: [Python 3.11.2]
  • OpenWISP 25.10.0

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by tracing the VXLAN interface rendering path in the Python library and checking whether regression tests cover the generated OpenWrt configuration. Compare the rendered property with the expected device property, then add coverage showing that VXLAN interfaces no longer produce ifname and run the relevant test suite.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
networking
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.