diff options
author | Maria Matejka <mq@ucw.cz> | 2019-02-26 16:44:24 +0100 |
---|---|---|
committer | Maria Matejka <mq@ucw.cz> | 2019-02-26 16:44:24 +0100 |
commit | f249d0b84c840242a084966999a1d228c603b431 (patch) | |
tree | 7e366d772a68306b20c8c71e34febc747d9a8fe5 /filter/test-reconf-end.conf | |
parent | 0d12aa48363802e751d3b9a4afd6eb090592d7a3 (diff) |
Filters: comparison of functions and filters caching
Diffstat (limited to 'filter/test-reconf-end.conf')
-rw-r--r-- | filter/test-reconf-end.conf | 23 |
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; +} |