From 7c8aa8e94cc75dd4952b969c79cb45ddf3dd7985 Mon Sep 17 00:00:00 2001 From: Eirik Nygaard Date: Tue, 3 Apr 2007 19:03:59 +0200 Subject: [PATCH] * Better error message. * Remove vlan-part of config. * Simplify. --- clients/zyxelng.pl | 41 +++++------------------------------------ 1 file changed, 5 insertions(+), 36 deletions(-) diff --git a/clients/zyxelng.pl b/clients/zyxelng.pl index e41f657..3d02996 100644 --- a/clients/zyxelng.pl +++ b/clients/zyxelng.pl @@ -16,14 +16,13 @@ use nms qw(switch_connect switch_exec); #nms::ios_close($t); -my $oldip; -my $newip; if ($#ARGV < 1) { - die "Foo $#ARGV"; + die "Not enough arguments to zyxelng.pl $#ARGV"; } -$oldip = $ARGV[0]; -$newip = $ARGV[1]; +my $oldip = $ARGV[0]; +my $newip = $ARGV[1]; +#$switchname = $ARGV[2]; my $one = 0; @@ -38,39 +37,9 @@ my $switch = switch_connect($switchip) my $cmds1 = <