From 69400c6f912ffa6946fc546bf97d5c1a3e7993ac Mon Sep 17 00:00:00 2001 From: Beniamino Galvani Date: Tue, 15 Dec 2020 17:53:48 +0100 Subject: [PATCH] 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. --- src/devices/ovs/nm-ovsdb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/devices/ovs/nm-ovsdb.c b/src/devices/ovs/nm-ovsdb.c index cd14920784..1325777fbf 100644 --- a/src/devices/ovs/nm-ovsdb.c +++ b/src/devices/ovs/nm-ovsdb.c @@ -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"); } /*****************************************************************************/