mirror of
git://git.proxmox.com/git/qemu-server.git
synced 2024-12-27 03:21:43 +03:00
show better error message if bridge does not exist
This commit is contained in:
parent
98a0dc5e2a
commit
8afd0c622f
@ -29,6 +29,7 @@ my $bridge = $net->{bridge};
|
||||
die "unable to get bridge setting\n" if !$bridge;
|
||||
|
||||
my $bridgemtu = PVE::Tools::file_read_firstline("/sys/class/net/$bridge/mtu");
|
||||
die "bridge '$bridge' does not exist\n" if !$bridgemtu;
|
||||
|
||||
system ("/sbin/ifconfig $iface 0.0.0.0 promisc up mtu $bridgemtu") == 0 ||
|
||||
die "interface activation failed\n";
|
||||
|
Loading…
Reference in New Issue
Block a user