Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
use PVE::INotify;
use PVE::JSONSchema qw(get_standard_option);
use PVE::Tools qw($IPV6RE $IPV4RE);
+use PVE::Network;
use Data::Dumper;
delete $conf->{'pve.searchdomain'};
push @nohotplug, $opt;
next if $running;
- } elsif ($opt =~ m/^net\d$/) {
+ } elsif ($opt =~ m/^net(\d)$/) {
delete $conf->{$opt};
- push @nohotplug, $opt;
- next if $running;
+ next if !$running;
+ my $netid = $1;
+ PVE::Network::veth_delete("veth${vmid}.$netid");
} else {
die "implement me"
}
PVE::Tools::run_command($cmd);
}
}
-
+
1;