vxlan: MacLearning=false not being issued for networkd

Bug #2000712 reported by Dr. Jens Harbott
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Netplan
Triaged
Medium
Unassigned

Bug Description

When I have a config like:

  tunnels:
    vxlan42:
      mode: vxlan
      link: br42
      id: 42
      port: 4789
      local: 1.2.3.4
      mac-learning: false

the mac-learning variable is being ignored instead of making it into the .netdev file, which is bad, since the default is true, so there is no way to disable mac-learning currently. The responsible code is https://github.com/canonical/netplan/blob/main/src/networkd.c#L439-L440 , the fix would be to either drop the "if" and always set the parameter or to check for "!= NETPLAN_TRISTATE_UNSET" like in other locations.

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

There's some (draft) work going on here: https://github.com/canonical/netplan/pull/311

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

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