summaryrefslogtreecommitdiffstats
path: root/tools/templates
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-28 09:54:46 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-28 09:54:46 +0000
commitcd7b005519ade8ab6c97fcb21590b71b7d1be6e3 (patch)
treec611a8d0cd5e8f68f41b8c2d16ba580e0f40a38d /tools/templates
parentInitial commit. (diff)
downloadlibrtr-cd7b005519ade8ab6c97fcb21590b71b7d1be6e3.tar.xz
librtr-cd7b005519ade8ab6c97fcb21590b71b7d1be6e3.zip
Adding upstream version 0.8.0.upstream/0.8.0upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'tools/templates')
-rw-r--r--tools/templates/csv3
-rw-r--r--tools/templates/csvwithheader4
-rw-r--r--tools/templates/default3
-rw-r--r--tools/templates/json10
4 files changed, 20 insertions, 0 deletions
diff --git a/tools/templates/csv b/tools/templates/csv
new file mode 100644
index 0000000..3b08945
--- /dev/null
+++ b/tools/templates/csv
@@ -0,0 +1,3 @@
+{{#roas}}
+{{prefix}}, {{length}}, {{maxlen}}, {{origin}}
+{{/roas}}
diff --git a/tools/templates/csvwithheader b/tools/templates/csvwithheader
new file mode 100644
index 0000000..01a92bc
--- /dev/null
+++ b/tools/templates/csvwithheader
@@ -0,0 +1,4 @@
+prefix, minlen, maxlen, asn
+{{#roas}}
+{{prefix}}, {{length}}, {{maxlen}}, {{origin}}
+{{/roas}}
diff --git a/tools/templates/default b/tools/templates/default
new file mode 100644
index 0000000..6fa86df
--- /dev/null
+++ b/tools/templates/default
@@ -0,0 +1,3 @@
+{{#roas}}
+{{prefix}}/{{length}}-{{maxlen}} AS {{origin}}
+{{/roas}}
diff --git a/tools/templates/json b/tools/templates/json
new file mode 100644
index 0000000..8b7adb9
--- /dev/null
+++ b/tools/templates/json
@@ -0,0 +1,10 @@
+[
+{{#roas}}
+ {
+ "prefix": "{{prefix}}",
+ "length": "{{length}}",
+ "maxlen": "{{maxlen}}",
+ "origin": "{{origin}}"
+ }{{^last}},{{/last}}
+{{/roas}}
+]