summaryrefslogtreecommitdiff
path: root/filter/test-reconf-end.conf
blob: 19164825699fc7cc3f1002a1971ebb5b7147d581 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
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;
}