vxlan: VXLAN setting ends up in wrong section

Bug #2000713 reported by Dr. Jens Harbott
18
This bug affects 3 people
Affects Status Importance Assigned to Milestone
Netplan
Fix Released
Medium
Danilo Egea Gondolfo

Bug Description

If a vxlan is linked to a bridge that has additional data like static routes, the "VXLAN=" tag ends up at the end of the .network file in the "[Route]" section instead of the "[Network]" section where it belongs. The code generating it https://github.com/canonical/netplan/blob/main/src/networkd.c#L949-L961 should be moved to L874 so it is executed before any other sections get created.

Lukas Märdian (slyon)
Changed in netplan:
importance: Undecided → Medium
status: New → Triaged
Revision history for this message
Danilo Egea Gondolfo (danilogondolfo) wrote :

Hi, thank you for your bug report.

I will investigate this further.

Reproducer:

network:
  renderer: networkd
  ethernets:
    eth0:
      routes:
        - to: 10.20.30.40/32
          via: 10.20.30.1
  tunnels:
    vxlan1:
      mode: vxlan
      id: 1
      link: eth0

Result:

[Match]
Name=eth0

[Network]
LinkLocalAddressing=ipv6

[Route]
Destination=10.20.30.40/32
Gateway=10.20.30.1
VXLAN=vxlan1

Result without the route:

[Match]
Name=eth0

[Network]
LinkLocalAddressing=ipv6
VXLAN=vxlan1

Changed in netplan:
assignee: nobody → Danilo Egea Gondolfo (danilogondolfo)
Revision history for this message
Danilo Egea Gondolfo (danilogondolfo) wrote :
Lukas Märdian (slyon)
Changed in netplan:
status: Triaged → Fix Committed
Revision history for this message
Pavel Malyshev (afunix) wrote :

When the fix will reach Ubuntu 22.04 LTS?
It's been almost 3 months since "fix committed" and 22.04 is still affected by this.

Revision history for this message
Dr. Jens Harbott (j-harbott) wrote :

I guess https://bugs.launchpad.net/netplan/+bug/2025519 is relevant regarding backporting

Revision history for this message
Lukas Märdian (slyon) wrote :
Changed in netplan:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.