summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStephen Hemminger <stephen.hemminger@vyatta.com>2010-06-11 14:22:05 -0700
committerStephen Hemminger <stephen.hemminger@vyatta.com>2010-06-11 14:22:05 -0700
commit1d32d3ab35e569391b85f899c8ab05001b1f56a3 (patch)
tree6e49901e290765201b9f422adf595bbed5010b33
parent1a7f8785849d11201e1d510f993bba96627d13d0 (diff)
downloadvyatta-cfg-qos-1d32d3ab35e569391b85f899c8ab05001b1f56a3.tar.gz
vyatta-cfg-qos-1d32d3ab35e569391b85f899c8ab05001b1f56a3.zip
Fix update/delete interface
Need to restore direction argument from earlier (Kenwood) version.
-rwxr-xr-xscripts/vyatta-qos.pl14
1 files changed, 7 insertions, 7 deletions
diff --git a/scripts/vyatta-qos.pl b/scripts/vyatta-qos.pl
index 1f26de7..8d55812 100755
--- a/scripts/vyatta-qos.pl
+++ b/scripts/vyatta-qos.pl
@@ -312,21 +312,21 @@ usage: vyatta-qos.pl --list-policy
vyatta-qos.pl --delete-policy policy-name
vyatta-qos.pl --apply-policy policy-type policy-name
- vyatta-qos.pl --update-interface interface policy-name
- vyatta-qos.pl --delete-interface interface
+ vyatta-qos.pl --update-interface interface direction policy-name
+ vyatta-qos.pl --delete-interface interface direction
vyatta-qos.pl --start-interface interface
EOF
exit 1;
}
-my (@startList, @updateInterface, $deleteInterface, $updateAction);
+my (@startList, @updateInterface, @deleteInterface, $updateAction);
my ($listPolicy, @createPolicy, @applyPolicy, @deletePolicy);
GetOptions(
"start-interface=s" => \@startList,
- "update-interface=s{2}" => \@updateInterface,
- "delete-interface=s" => \$deleteInterface,
+ "update-interface=s{3}" => \@updateInterface,
+ "delete-interface=s{2}" => \@deleteInterface,
"list-policy" => \$listPolicy,
"delete-policy=s" => \@deletePolicy,
@@ -337,8 +337,8 @@ GetOptions(
) or usage();
-delete_interface($deleteInterface) if ( $deleteInterface );
-update_interface(@updateInterface) if ( $#updateInterface == 1 );
+delete_interface(@deleteInterface) if ( @deleteInterface == 1);
+update_interface(@updateInterface) if ( $#updateInterface == 2 );
start_interface(@startList) if ( @startList );
list_policy($listPolicy) if ( $listPolicy );