mirror of
				https://git.proxmox.com/git/qemu-server
				synced 2025-11-04 15:54:28 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			17 lines
		
	
	
		
			253 B
		
	
	
	
		
			Perl
		
	
	
		
			Executable File
		
	
	
	
	
			
		
		
	
	
			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;
 |