5
0
mirror of git://git.proxmox.com/git/qemu-server.git synced 2024-12-25 23:21:43 +03:00
qemu-server/vm-network-scripts/pve-bridgedown
Thomas Lamprecht b53173fca5 move VM network (hook) scripts to own directory
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2019-09-24 18:59:35 +02:00

17 lines
253 B
Perl
Executable File

#!/usr/bin/perl
use strict;
use warnings;
use PVE::Network;
my $iface = shift;
die "no interface specified\n" if !$iface;
die "got strange interface name '$iface'\n"
if $iface !~ m/^tap(\d+)i(\d+)$/;
PVE::Network::tap_unplug($iface);
exit 0;