summaryrefslogtreecommitdiff
path: root/filter/test-reconf-end.conf
diff options
context:
space:
mode:
authorMaria Matejka <mq@ucw.cz>2019-02-26 16:44:24 +0100
committerMaria Matejka <mq@ucw.cz>2019-02-26 16:44:24 +0100
commitf249d0b84c840242a084966999a1d228c603b431 (patch)
tree7e366d772a68306b20c8c71e34febc747d9a8fe5 /filter/test-reconf-end.conf
parent0d12aa48363802e751d3b9a4afd6eb090592d7a3 (diff)
Filters: comparison of functions and filters caching
Diffstat (limited to 'filter/test-reconf-end.conf')
-rw-r--r--filter/test-reconf-end.conf23
1 files changed, 23 insertions, 0 deletions
diff --git a/filter/test-reconf-end.conf b/filter/test-reconf-end.conf
new file mode 100644
index 00000000..19164825
--- /dev/null
+++ b/filter/test-reconf-end.conf
@@ -0,0 +1,23 @@
+router id 1.1.1.1;
+protocol device {}
+
+function a() {
+ return false;
+}
+
+function b() {
+ return a();
+}
+
+function c() {
+ return b();
+}
+
+filter d {
+ if c() then accept; else reject;
+}
+
+protocol static {
+ ipv4 { import filter d; };
+ route 10.0.0.0/24 unreachable;
+}