ovs: let the factory create devices for external patch interfaces

Patch interfaces are conceptually similar to internal interfaces. Let
the factory create devices for patch interfaces created externally.
This commit is contained in:
Beniamino Galvani 2020-12-15 17:53:48 +01:00
parent fdf390786f
commit 69400c6f91

View file

@ -321,7 +321,7 @@ _openvswitch_interface_should_emit_signal(const OpenvswitchInterface *ovs_interf
{
/* Currently, the factory only creates NMDevices for
* internal interfaces. We ignore the rest. */
return nm_streq0(ovs_interface->type, "internal");
return NM_IN_STRSET(ovs_interface->type, "internal", "patch");
}
/*****************************************************************************/