summaryrefslogtreecommitdiff
path: root/scripts/vyatta-qos.pl
diff options
context:
space:
mode:
authorStephen Hemminger <stephen.hemminger@vyatta.com>2008-03-14 13:48:06 -0700
committerStephen Hemminger <stephen.hemminger@vyatta.com>2008-03-14 13:48:06 -0700
commitf502df968b5c156c8f653aed2152e22865294d2e (patch)
tree7eddc55fd5adc73e5957be4fb9bc6cb4a6cb35af /scripts/vyatta-qos.pl
parent487e995ce3ceb09cfac4568b8836c312acb054e8 (diff)
downloadvyatta-cfg-qos-f502df968b5c156c8f653aed2152e22865294d2e.tar.gz
vyatta-cfg-qos-f502df968b5c156c8f653aed2152e22865294d2e.zip
fix script problem when updating interface
Bugfix for 3010
Diffstat (limited to 'scripts/vyatta-qos.pl')
-rwxr-xr-xscripts/vyatta-qos.pl3
1 files changed, 2 insertions, 1 deletions
diff --git a/scripts/vyatta-qos.pl b/scripts/vyatta-qos.pl
index 8ad3068..e946551 100755
--- a/scripts/vyatta-qos.pl
+++ b/scripts/vyatta-qos.pl
@@ -180,8 +180,9 @@ sub update_policy {
$config->setLevel("interfaces ethernet");
foreach my $interface ( $config->listNodes() ) {
foreach my $direction ( $config->listNodes("$interface qos-policy") ) {
- if ($config->returnValue("$interface qos-policy $direction") eq $name)
+ if ($config->returnValue("$interface qos-policy $direction") eq $name) {
update_interface($interface, $direction, $name);
+ }
}
}
}