From affde347f1fd4db7ef50c8b53f834e9785cd4d77 Mon Sep 17 00:00:00 2001 From: Wolfgang Link Date: Fri, 27 Jan 2017 13:14:15 +0100 Subject: [PATCH 1/1] Fix interface writer for bridge_ports and slaves. The pve-iface-list allow to separate interfaces with [;,\s]. But in the interface file are only whitespace allowed to separate interfaces. --- src/PVE/INotify.pm | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/PVE/INotify.pm b/src/PVE/INotify.pm index 621b555..44d0f2f 100644 --- a/src/PVE/INotify.pm +++ b/src/PVE/INotify.pm @@ -1054,6 +1054,7 @@ sub __interface_to_string { # not printing out options } elsif ($d->{type} eq 'bridge') { + $d->{bridge_ports} =~ s/([;,\s])+/ /g; my $ports = $d->{bridge_ports} || 'none'; $raw .= "\tbridge_ports $ports\n"; $done->{bridge_ports} = 1; @@ -1073,6 +1074,7 @@ sub __interface_to_string { } elsif ($d->{type} eq 'bond') { + $d->{slaves} =~ s/([;,\s])+/ /g; my $slaves = $d->{slaves} || 'none'; $raw .= "\tslaves $slaves\n"; $done->{slaves} = 1; -- 2.39.2