From dfd2ab785325157da2b3eb2578158d9cc232c688 Mon Sep 17 00:00:00 2001 From: Stephen Hemminger Date: Thu, 2 Oct 2008 21:13:08 +0200 Subject: Fix list-policy problem with ingress Command completeion for policy name was broken by changes to add in and out type. --- scripts/vyatta-qos.pl | 4 ++-- 1 file 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; } } -- cgit v1.2.3