[pve-devel] [PATCH v2 pve-common 1/3] Inotify : add mtu support

Alexandre Derumier aderumier at odiso.com
Wed Jun 27 03:35:39 CEST 2018


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

diff --git a/src/PVE/INotify.pm b/src/PVE/INotify.pm
index 0b9ea4a..4024951 100644
--- a/src/PVE/INotify.pm
+++ b/src/PVE/INotify.pm
@@ -875,6 +875,8 @@ sub __read_etc_network_interfaces {
 
 		    if (($id eq 'address') || ($id eq 'netmask') || ($id eq 'broadcast') || ($id eq 'gateway')) {
 			$f->{$id} = $value;
+		    } elsif ($id eq 'mtu') {
+			$d->{$id} = $value;
 		    } elsif ($id eq 'ovs_type' || $id eq 'ovs_options'|| $id eq 'ovs_bridge' ||
 			     $id eq 'ovs_bonds' || $id eq 'ovs_ports') {
 			$d->{$id} = $value;
-- 
2.11.0



More information about the pve-devel mailing list