aboutsummaryrefslogtreecommitdiff
path: root/manifests/tcclasses.pp
diff options
context:
space:
mode:
Diffstat (limited to 'manifests/tcclasses.pp')
-rw-r--r--manifests/tcclasses.pp12
1 files changed, 12 insertions, 0 deletions
diff --git a/manifests/tcclasses.pp b/manifests/tcclasses.pp
new file mode 100644
index 0000000..2126bb7
--- /dev/null
+++ b/manifests/tcclasses.pp
@@ -0,0 +1,12 @@
+define shorewall::tcclasses(
+ $interface,
+ $rate,
+ $ceil,
+ $priority,
+ $options = '',
+ $order = '1'
+){
+ shorewall::entry { "tcclasses.d/${order}-${title}":
+ line => "# ${name}\n${interface} ${order} ${rate} ${ceil} ${priority} ${options}",
+ }
+}