summaryrefslogtreecommitdiff
path: root/scripts/vyatta-qos.pl
diff options
context:
space:
mode:
authorStephen Hemminger <stephen.hemminger@vyatta.com>2008-10-02 21:13:08 +0200
committerStephen Hemminger <stephen.hemminger@vyatta.com>2008-10-02 21:13:08 +0200
commitdfd2ab785325157da2b3eb2578158d9cc232c688 (patch)
treec797fb9e22bc686d83877b8551501bf1278fc436 /scripts/vyatta-qos.pl
parentcd75a9966320ea25402af8afb84fcb44591e1857 (diff)
downloadvyatta-cfg-qos-dfd2ab785325157da2b3eb2578158d9cc232c688.tar.gz
vyatta-cfg-qos-dfd2ab785325157da2b3eb2578158d9cc232c688.zip
Fix list-policy problem with ingress
Command completeion for policy name was broken by changes to add in and out type.
Diffstat (limited to 'scripts/vyatta-qos.pl')
-rwxr-xr-xscripts/vyatta-qos.pl4
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/vyatta-qos.pl b/scripts/vyatta-qos.pl
index a2b1303..29a86d0 100755
--- a/scripts/vyatta-qos.pl
+++ b/scripts/vyatta-qos.pl
@@ -89,8 +89,8 @@ sub list_policy {
$config->setLevel('qos-policy');
foreach my $type ( $config->listNodes() ) {
- next if ! defined $policies{$direction}{$type};
- foreach my $name ( $config->listNodes ) {
+ next unless defined $policies{$direction}{$type};
+ foreach my $name ( $config->listNodes($type) ){
push @nodes, $name;
}
}