Skip to content

ovs: Do not allow OVS bridge and port to be parent

Gris Ge requested to merge cathay4t/NetworkManager:fix_ovs_same_name into main

When creating VLAN over OVS internal interface which holding the same name as its controller OVS bridge, NetworkManager will fail with error:

    Error: Connection activation failed: br0.101 failed to create
    resources: cannot retrieve ifindex of interface br0 (Open vSwitch
    Bridge)

Expanded the find_device_by_iface() with additional argument child: NmConnection * which will validate whether candidate is suitable to be parent device.

In nm_device_check_parent_connection_compatible(), we only not allow OVS bridge and OVS port being parent.

Resolves: https://issues.redhat.com/browse/RHEL-26753

Edited by Gris Ge

Merge request reports