Netplan: "interface X already has a path cost of Y" for bridge with VLANs
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
netplan |
New
|
Undecided
|
Unassigned |
Bug Description
I am trying to configure a bridge setup with VLANs, with this simple setup for reproduction of the issue:
* bridge0: VLAN trunk
* bridge1: VLAN 100, bridging VLAN 100 on Ethernet and VLAN 100 on bridge0
Without setting path costs, the setup is successful:
network:
version: 2
ethernets:
ethernet0:
match:
macaddress: 00:8a:8d:8a:71:73
set-name: ethernet0
dhcp4: false
accept-ra: false
vlans:
bridge0.100:
link: bridge0
id: 100
ethernet0.100:
link: ethernet0
id: 100
bridges:
bridge0:
accept-ra: no
bridge1:
accept-ra: no
interfaces:
- bridge0.100
- ethernet0.100
parameters:
stp: true
Now, trying to add path costs:
path-cost:
This results in a Netplan error:
Error in network definition: bridge1: interface 'bridge0.100' already has a path cost of 10000
$ apt-show-versions | grep netplan.io io:amd64/ focal-updates 0.102-0ubuntu1~ 20.04.2 uptodate
netplan.
$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 20.04.2 LTS
Release: 20.04
Codename: focal