I am not sure I have any definitivie answers but here are my thoughts.

Compare a VLAN device created with `ip link add`

ip link add link enp6s0 name enp6s0.100 type vlan id 100

cat /sys/class/net/enp6s0.100/uevent 
DEVTYPE=vlan
INTERFACE=enp6s0.100
IFINDEX=3


To an OVS VLAN interface created with ovs-vsctl:

ovs-vsctl add-port br-ex vlan100 tag=200 -- set Interface vlan100
type=internal

cat /sys/class/net/br-ex.100/uevent 
INTERFACE=br-ex.100
IFINDEX=7


I suspect this is down to the tooling. OVS is creating virtual devices so it 
may not be what `ip link` would create.


Could the `is_vlan` function check for the '.' followed by an integer which is 
the indication of a VLAN in all cases?

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1912844

Title:
  Bond with OVS bridging RuntimeError: duplicate mac found!

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/cloud-init/+bug/1912844/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to