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

Alexandre Derumier aderumier at odiso.com
Fri Mar 29 00:23:38 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