summaryrefslogtreecommitdiff
path: root/scripts/vyatta-qos.pl
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/vyatta-qos.pl')
-rwxr-xr-xscripts/vyatta-qos.pl11
1 files changed, 7 insertions, 4 deletions
diff --git a/scripts/vyatta-qos.pl b/scripts/vyatta-qos.pl
index 7c4a014..469c50f 100755
--- a/scripts/vyatta-qos.pl
+++ b/scripts/vyatta-qos.pl
@@ -137,11 +137,14 @@ sub start_interface {
next unless $path;
my $config = new Vyatta::Config;
- $config->setLevel( $path );
- my $policy = $config->returnValue('traffic-policy');
+ $config->setLevel($path . ' traffic-policy');
- update_interface( $ifname, $policy ) if ($policy);
- update_action( $ifname );
+ foreach my $direction ($config->listNodes()) {
+ my $policy = $config->returnValue($direction);
+ next unless $policy;
+
+ update_interface( $ifname, $direction, $policy );
+ }
}
}