summaryrefslogtreecommitdiff
path: root/templates/qos-policy/network-emulator/node.def
diff options
context:
space:
mode:
Diffstat (limited to 'templates/qos-policy/network-emulator/node.def')
-rw-r--r--templates/qos-policy/network-emulator/node.def7
1 files changed, 7 insertions, 0 deletions
diff --git a/templates/qos-policy/network-emulator/node.def b/templates/qos-policy/network-emulator/node.def
new file mode 100644
index 0000000..0139490
--- /dev/null
+++ b/templates/qos-policy/network-emulator/node.def
@@ -0,0 +1,7 @@
+tag:
+type: txt
+help: Setup network emulator policy
+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(@)"