summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStephen Hemminger <stephen.hemminger@vyatta.com>2010-07-23 09:40:34 -0700
committerStephen Hemminger <stephen.hemminger@vyatta.com>2010-07-23 09:40:34 -0700
commitb899762c8e982b79109087cd3e7e9327dc76ca3d (patch)
tree72b3581b199a272ad89860b0649484abdfc93a4e
parenta9b39d7ac6636ed76807bb5d8278f2b9e4f380df (diff)
downloadvyatta-cfg-qos-b899762c8e982b79109087cd3e7e9327dc76ca3d.tar.gz
vyatta-cfg-qos-b899762c8e982b79109087cd3e7e9327dc76ca3d.zip
Fix delete of interface qos policy
Bug 5798
-rwxr-xr-xscripts/vyatta-qos.pl2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/vyatta-qos.pl b/scripts/vyatta-qos.pl
index 74c66e0..d80913d 100755
--- a/scripts/vyatta-qos.pl
+++ b/scripts/vyatta-qos.pl
@@ -379,7 +379,7 @@ GetOptions(
"check-target=s" => \$checkTarget,
) or usage();
-delete_interface(@deleteInterface) if ( @deleteInterface == 1);
+delete_interface(@deleteInterface) if ( $#deleteInterface == 1 );
update_interface(@updateInterface) if ( $#updateInterface == 2 );
start_interface(@startList) if ( @startList );