howto/Bird.md
... ...
@@ -107,6 +107,14 @@ Generate the filter list from the monotone repository
107 107
```
108 108
$ cd net.dn42.registry
109 109
$ ruby utils/bgp-filter.rb < data/filter.txt > /etc/bird/filter4.conf
110
+
111
+or
112
+
113
+curl -sk https://git.dn42/git/dn42/registry/plain/data/filter.txt | \
114
+awk 'BEGIN {printf "function is_dn42() {\n return net ~ [\n" } \
115
+/^[0-9]/ && $2 ~ /permit/ {printf " %s{%s,%s},\n", $3, $4, $5};' | \
116
+sed "$ s/,$/\n ];\n}/" > /etc/bird/filter4.conf
117
+
110 118
```
111 119
112 120
example filter list:
... ...
@@ -228,6 +236,14 @@ Generate the filter list from the monotone repository
228 236
```
229 237
$ cd net.dn42.registry
230 238
$ ruby utils/bgp-filter.rb < data/filter6.txt > /etc/bird/filter6.conf
239
+
240
+or
241
+
242
+curl -sk https://git.dn42/git/dn42/registry/plain/data/filter6.txt | \
243
+awk 'BEGIN {printf "function is_dn42() {\n return net ~ [\n" } \
244
+/^[0-9]/ && $2 ~ /permit/ {printf " %s{%s,%s},\n", $3, $4, $5};' | \
245
+sed "$ s/,$/\n ];\n}/" > /etc/bird/filter6.conf
246
+
231 247
```
232 248
233 249
example filter list: