Skip to content

[bug] Property name of VXLAN interface #373

Open

Description

@AndyX90

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

Activity

  1. SajalDevX commented on Sep 26, 2026

    @SajalDevX

    I'd like to take this one.

    The VXLAN converter keeps ifname in every mode, so with the default dsa=True it renders option ifname 'vxlan1', which is what makes LuCI ask to migrate. I have a fix that renders device when dsa is enabled and leaves dsa=False output unchanged. Parsing already maps device back to the name, and configs rendered with ifname still parse. Tests and ./run-qa-checks pass locally, and I'll open a PR from issues/373-vxlan-device unless you'd prefer a different approach.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions