diff options
author | Stephen Hemminger <stephen.hemminger@vyatta.com> | 2009-03-08 13:29:28 -0700 |
---|---|---|
committer | Stephen Hemminger <stephen.hemminger@vyatta.com> | 2009-03-08 13:29:28 -0700 |
commit | 591e6f4ff4fa62374b8088e16022affd37db7699 (patch) | |
tree | 308bc918470de94b50061c475f18b4f209a313ca /templates/qos-policy | |
parent | ebb84fd5697b916a1b2413fe722eea6e2a777faf (diff) | |
download | vyatta-cfg-qos-591e6f4ff4fa62374b8088e16022affd37db7699.tar.gz vyatta-cfg-qos-591e6f4ff4fa62374b8088e16022affd37db7699.zip |
Move apply from top level into policy nodes
Makes code simpler and will work better with config system.
Also eliminates need for isChanged() code.
Diffstat (limited to 'templates/qos-policy')
-rw-r--r-- | templates/qos-policy/drop-tail/node.def | 1 | ||||
-rw-r--r-- | templates/qos-policy/fair-queue/node.def | 1 | ||||
-rw-r--r-- | templates/qos-policy/network-emulator/node.def | 1 | ||||
-rw-r--r-- | templates/qos-policy/node.def | 1 | ||||
-rw-r--r-- | templates/qos-policy/rate-limit/node.def | 1 | ||||
-rw-r--r-- | templates/qos-policy/traffic-limiter/node.def | 1 | ||||
-rw-r--r-- | templates/qos-policy/traffic-shaper/node.def | 1 |
7 files changed, 6 insertions, 1 deletions
diff --git a/templates/qos-policy/drop-tail/node.def b/templates/qos-policy/drop-tail/node.def index 4cb2ada..ba99edb 100644 --- a/templates/qos-policy/drop-tail/node.def +++ b/templates/qos-policy/drop-tail/node.def @@ -5,3 +5,4 @@ syntax:expression: pattern $VAR(@) "^[[:alnum:]][-_[:alnum:]]*$" ; "only alpha-numeric policy name allowed" update: /opt/vyatta/sbin/vyatta-qos.pl --create-policy "$VAR(.)" "$VAR(@)" delete: /opt/vyatta/sbin/vyatta-qos.pl --delete-policy "$VAR(@)" +end: /opt/vyatta/sbin/vyatta-qos.pl --apply-policy "$VAR(@)" diff --git a/templates/qos-policy/fair-queue/node.def b/templates/qos-policy/fair-queue/node.def index aee9aa3..ebe6274 100644 --- a/templates/qos-policy/fair-queue/node.def +++ b/templates/qos-policy/fair-queue/node.def @@ -5,3 +5,4 @@ syntax:expression: pattern $VAR(@) "^[[:alnum:]][-_[:alnum:]]*$" ; "only alpha-numeric policy name allowed" update: /opt/vyatta/sbin/vyatta-qos.pl --create-policy "$VAR(.)" "$VAR(@)" delete: /opt/vyatta/sbin/vyatta-qos.pl --delete-policy "$VAR(@)" +end: /opt/vyatta/sbin/vyatta-qos.pl --apply-policy "$VAR(@)" diff --git a/templates/qos-policy/network-emulator/node.def b/templates/qos-policy/network-emulator/node.def index 0139490..9da2744 100644 --- a/templates/qos-policy/network-emulator/node.def +++ b/templates/qos-policy/network-emulator/node.def @@ -5,3 +5,4 @@ syntax:expression: pattern $VAR(@) "^[[:alnum:]][-_[:alnum:]]*$" ; "only alpha-numeric policy name allowed" update: /opt/vyatta/sbin/vyatta-qos.pl --create-policy "$VAR(.)" "$VAR(@)" delete: /opt/vyatta/sbin/vyatta-qos.pl --delete-policy "$VAR(@)" +end: /opt/vyatta/sbin/vyatta-qos.pl --apply-policy "$VAR(@)" diff --git a/templates/qos-policy/node.def b/templates/qos-policy/node.def index 8651fd7..e692c0f 100644 --- a/templates/qos-policy/node.def +++ b/templates/qos-policy/node.def @@ -1,2 +1 @@ help: Configure Quality of Service (QOS) policy type -end: /opt/vyatta/sbin/vyatta-qos.pl --apply diff --git a/templates/qos-policy/rate-limit/node.def b/templates/qos-policy/rate-limit/node.def index 85586db..0466781 100644 --- a/templates/qos-policy/rate-limit/node.def +++ b/templates/qos-policy/rate-limit/node.def @@ -5,3 +5,4 @@ syntax:expression: pattern $VAR(@) "^[[:alnum:]][-_[:alnum:]]*$" ; "only alpha-numeric policy name allowed" update: /opt/vyatta/sbin/vyatta-qos.pl --create-policy "$VAR(.)" "$VAR(@)" delete: /opt/vyatta/sbin/vyatta-qos.pl --delete-policy "$VAR(@)" +end: /opt/vyatta/sbin/vyatta-qos.pl --apply-policy "$VAR(@)" diff --git a/templates/qos-policy/traffic-limiter/node.def b/templates/qos-policy/traffic-limiter/node.def index d760acb..9370294 100644 --- a/templates/qos-policy/traffic-limiter/node.def +++ b/templates/qos-policy/traffic-limiter/node.def @@ -5,3 +5,4 @@ syntax:expression: pattern $VAR(@) "^[[:alnum:]][-_[:alnum:]]*$" ; "only alpha-numeric policy name allowed" update: /opt/vyatta/sbin/vyatta-qos.pl --create-policy "$VAR(.)" "$VAR(@)" delete: /opt/vyatta/sbin/vyatta-qos.pl --delete-policy "$VAR(@)" +end: /opt/vyatta/sbin/vyatta-qos.pl --apply-policy "$VAR(@)" diff --git a/templates/qos-policy/traffic-shaper/node.def b/templates/qos-policy/traffic-shaper/node.def index b0b209d..11b91fe 100644 --- a/templates/qos-policy/traffic-shaper/node.def +++ b/templates/qos-policy/traffic-shaper/node.def @@ -5,3 +5,4 @@ syntax:expression: pattern $VAR(@) "^[[:alnum:]][-_[:alnum:]]*$" ; "only alpha-numeric policy name allowed" update: /opt/vyatta/sbin/vyatta-qos.pl --create-policy "$VAR(.)" "$VAR(@)" delete: /opt/vyatta/sbin/vyatta-qos.pl --delete-policy "$VAR(@)" +end: /opt/vyatta/sbin/vyatta-qos.pl --apply-policy "$VAR(@)" |