diff options
author | Stephen Hemminger <stephen.hemminger@vyatta.com> | 2008-10-02 21:13:08 +0200 |
---|---|---|
committer | Stephen Hemminger <stephen.hemminger@vyatta.com> | 2008-10-02 21:13:08 +0200 |
commit | dfd2ab785325157da2b3eb2578158d9cc232c688 (patch) | |
tree | c797fb9e22bc686d83877b8551501bf1278fc436 /scripts | |
parent | cd75a9966320ea25402af8afb84fcb44591e1857 (diff) | |
download | vyatta-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')
-rwxr-xr-x | scripts/vyatta-qos.pl | 4 |
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; } } |