summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorhagbard <vyosdev@derith.de>2019-01-07 15:04:28 -0800
committerhagbard <vyosdev@derith.de>2019-01-07 15:04:28 -0800
commit68cd1f0cd55bfe76a44f552fd04e4019539a3a99 (patch)
tree5ccc7e4cd7ca3d2ee8492f1d7a3b4829565d8141 /scripts
parentac028c3cfa2da488fd4cf989e0889a3416183e9b (diff)
downloadvyatta-cfg-system-68cd1f0cd55bfe76a44f552fd04e4019539a3a99.tar.gz
vyatta-cfg-system-68cd1f0cd55bfe76a44f552fd04e4019539a3a99.zip
T1026: Removing tunnel deletes all tunnels?
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/vyatta-tunnel-cleanup10
1 files changed, 0 insertions, 10 deletions
diff --git a/scripts/vyatta-tunnel-cleanup b/scripts/vyatta-tunnel-cleanup
index 979fb7bd..b8a93244 100755
--- a/scripts/vyatta-tunnel-cleanup
+++ b/scripts/vyatta-tunnel-cleanup
@@ -28,13 +28,3 @@ foreach my $tun ( $config->listEffectiveNodes() ) {
next if ($interface eq $tun); # don't count the one being deleted
$tunnel{$mode} = 1;
}
-
-foreach my $type ( keys %encapsulation ) {
- # skip if tunnel is still in use
- next if $tunnel{$type};
-
- my $module = $encapsulation{$type};
- next unless ( -d "/sys/module/$module" );
- system("sudo /sbin/rmmod $module") == 0
- or warn "rmmod $module failed\n";
-}