[pve-devel] [PATCH v4 pve-common 2/6] INotify : add vnet as bridge type

Alexandre Derumier aderumier at odiso.com
Wed Apr 3 00:18:30 CEST 2019


---
 src/PVE/INotify.pm | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/PVE/INotify.pm b/src/PVE/INotify.pm
index d1c563f..fe6cad8 100644
--- a/src/PVE/INotify.pm
+++ b/src/PVE/INotify.pm
@@ -1049,7 +1049,7 @@ sub __read_etc_network_interfaces {
 	    } else {
 		$d->{type} = 'unknown';
 	    }
-	} elsif ($iface =~ m/^vmbr\d+$/) {
+	} elsif ($iface =~ m/^(vmbr|vnet)\d+$/) {
 	    if (!$d->{ovs_type}) {
 		$d->{type} = 'bridge';
 
-- 
2.11.0




More information about the pve-devel mailing list