From cd75a9966320ea25402af8afb84fcb44591e1857 Mon Sep 17 00:00:00 2001 From: Stephen Hemminger Date: Tue, 30 Sep 2008 15:16:53 +0200 Subject: fair-queue: validate policy on update Need to check validity on update, not just create --- templates/qos-policy/fair-queue/node.def | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'templates/qos-policy') diff --git a/templates/qos-policy/fair-queue/node.def b/templates/qos-policy/fair-queue/node.def index 306bdf9..aee9aa3 100644 --- a/templates/qos-policy/fair-queue/node.def +++ b/templates/qos-policy/fair-queue/node.def @@ -3,6 +3,5 @@ type: txt help: Set fair queueing policy syntax:expression: pattern $VAR(@) "^[[:alnum:]][-_[:alnum:]]*$" ; "only alpha-numeric policy name allowed" -create: /opt/vyatta/sbin/vyatta-qos.pl --create-policy "$VAR(.)" "$VAR(@)" +update: /opt/vyatta/sbin/vyatta-qos.pl --create-policy "$VAR(.)" "$VAR(@)" delete: /opt/vyatta/sbin/vyatta-qos.pl --delete-policy "$VAR(@)" -update: /opt/vyatta/sbin/vyatta-qos.pl --update-policy "$VAR(.)" "$VAR(@)" -- cgit v1.2.3