diff options
author | Stephen Hemminger <stephen.hemminger@vyatta.com> | 2010-06-11 14:34:29 -0700 |
---|---|---|
committer | Stephen Hemminger <stephen.hemminger@vyatta.com> | 2010-06-11 14:34:29 -0700 |
commit | a52f26c193eb3d2e575c05506d7c1f082082f407 (patch) | |
tree | 434791a9614214798c9e524b542397220af2e5c7 /scripts | |
parent | 1d32d3ab35e569391b85f899c8ab05001b1f56a3 (diff) | |
download | vyatta-cfg-qos-a52f26c193eb3d2e575c05506d7c1f082082f407.tar.gz vyatta-cfg-qos-a52f26c193eb3d2e575c05506d7c1f082082f407.zip |
Fix mirror and redirect action
Need to run sudo tc
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/vyatta-qos.pl | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/scripts/vyatta-qos.pl b/scripts/vyatta-qos.pl index 8d55812..c9f496f 100755 --- a/scripts/vyatta-qos.pl +++ b/scripts/vyatta-qos.pl @@ -289,7 +289,7 @@ sub apply_action{ or die "tc qdisc ingress failed"; my $cmd = - "tc filter add dev $dev parent ffff:" + "sudo tc filter add dev $dev parent ffff:" . " protocol all prio 10 u32" . " match u32 0 0 flowid 1:1" . " action mirred egress $action dev $target"; @@ -307,7 +307,7 @@ sub apply_action{ sub usage { print <<EOF; -usage: vyatta-qos.pl --list-policy +usage: vyatta-qos.pl --list-policy direction vyatta-qos.pl --create-policy policy-type policy-name vyatta-qos.pl --delete-policy policy-name vyatta-qos.pl --apply-policy policy-type policy-name @@ -328,7 +328,7 @@ GetOptions( "update-interface=s{3}" => \@updateInterface, "delete-interface=s{2}" => \@deleteInterface, - "list-policy" => \$listPolicy, + "list-policy=s" => \$listPolicy, "delete-policy=s" => \@deletePolicy, "create-policy=s{2}" => \@createPolicy, "apply-policy=s" => \@applyPolicy, |