Weâve been progressively rewriting all the old OVS logic to directly use their API, so itâs quite possible that one of those changes caused a regression, just need to understand the environment so I can reproduce it here and push a quick fix.
I made some progress, and it appears that incus network ls does not inherit from OvS non managed switches.
I addressed my 6.1 issue by setting IP addresses to the parent switch. It was easy as there is only one single VLAN for all containers connected to OVS sw-inetdoc on the host.
This means we have to start a new OVS switch per VLAN.
incus network ls
+------------+----------+------+------+------+-------------+-------------+------+
| NOM | TYPE | GĂRĂ | IPV4 | IPV6 | DESCRIPTION | UTILISĂ PAR | ĂTAT |
+------------+----------+------+------+------+-------------+-------------+------+
| eno1 | physical | NON | | | | 0 | |
+------------+----------+------+------+------+-------------+-------------+------+
| sw-inetdoc | bridge | NON | | | | 6 | |
+------------+----------+------+------+------+-------------+-------------+------+
| wlp0s20f3 | physical | NON | | | | 0 | |
+------------+----------+------+------+------+-------------+-------------+------
The 6.0 incus install allows to specify the âvlan:â key per profile. This way, we can have a profile per VLAN to match SVIs (OVS internal ports) addresses on a single OVS âmainâ switch.
Thank you so much for your prompt reply.
I managed to set a lab vm with two different VLAN profiles and proper addressing and tagging.
I will have to find a way to configure this same setup with OVN
Non Incus managed access switch as parent
incus network ls
+----------+----------+------+------+------+-------------+-------------+------+
| NOM | TYPE | GĂRĂ | IPV4 | IPV6 | DESCRIPTION | UTILISĂ PAR | ĂTAT |
+----------+----------+------+------+------+-------------+-------------+------+
| asw-host | bridge | NON | | | | 1 | |
+----------+----------+------+------+------+-------------+-------------+------+
| enp0s1 | physical | NON | | | | 0 | |
+----------+----------+------+------+------+-------------+-------------+------+
Two VLAN SVIs and two containers in each VLAN
sudo ovs-vsctl show
9922ebf3-7eb8-40f6-8415-d2b38a523a7f
Bridge asw-host
Port veth4912e945
tag: 20
Interface veth4912e945
Port veth9368bae5
tag: 20
Interface veth9368bae5
Port veth9fd7c5a9
tag: 10
Interface veth9fd7c5a9
Port asw-host
Interface asw-host
type: internal
Port vethf07fae3e
tag: 10
Interface vethf07fae3e
Port vlan10
tag: 10
Interface vlan10
type: internal
Port vlan20
tag: 20
Interface vlan20
type: internal
ovs_version: "3.1.0"