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

Alexandre Derumier aderumier at odiso.com
Wed Mar 27 18:24:03 CET 2019


Signed-off-by: Alexandre Derumier <aderumier at odiso.com>
---
 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