[pve-devel] Bug : Network.pm : copy_bridge_config : Insecure dependency in system while running with -T switch
Alexandre DERUMIER
aderumier at odiso.com
Mon Feb 24 18:33:56 CET 2014
http://forum.proxmox.com/threads/17895-Disable-Multicast-Snooping?p=91128
When trying to create a bridge vlan, through pve-manager only, copy_bridge_config don't work correctly
WARNING: Insecure dependency in system while running with -T switch at /usr/share/perl5/PVE/Network.pm line 175.
my $v0 = PVE::Tools::file_read_firstline("/sys/class/net/$br0/bridge/$sysname");
my $v1 = PVE::Tools::file_read_firstline("/sys/class/net/$br1/bridge/$sysname");
if ($v0 ne $v1) {
system("echo \"$v0\" > /sys/class/net/$br1/bridge/$sysname") == 0 ||
warn "unable to set bridge config '$sysname'\n";
}
Any idea how to fix that ? (I don't remember, maybe simply parse the values once with a regex ?)
More information about the pve-devel
mailing list