From 81b51bb9270e77289604493761a2f7cb047bd3ea Mon Sep 17 00:00:00 2001 From: Stephen Hemminger Date: Tue, 15 Jul 2008 14:13:51 -0700 Subject: Look for changes in QoS after commit Since configuration system doesn't correctly notify on addition/deletion, have to introduce this extra verbosity to have each traffic-shaper type check for changes. Bugfix for 3452 --- templates/qos-policy/node.def | 1 + templates/qos-policy/traffic-shaper/node.def | 3 +-- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'templates/qos-policy') diff --git a/templates/qos-policy/node.def b/templates/qos-policy/node.def index 2499fd5..991b5f5 100644 --- a/templates/qos-policy/node.def +++ b/templates/qos-policy/node.def @@ -1,2 +1,3 @@ help: Configure Quality of Service (QOS) policy type begin: /opt/vyatta/sbin/vyatta-qos.pl --check +end: /opt/vyatta/sbin/vyatta-qos.pl --apply diff --git a/templates/qos-policy/traffic-shaper/node.def b/templates/qos-policy/traffic-shaper/node.def index 31bdc93..b0b209d 100644 --- a/templates/qos-policy/traffic-shaper/node.def +++ b/templates/qos-policy/traffic-shaper/node.def @@ -3,6 +3,5 @@ type: txt help: Set traffic shaping based 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