Statistics
| Branch: | Revision:

iof-bird-daemon / bird.conf @ 23b1539b

History | View | Annotate | Download (1.29 KB)

1
/*
2
 *	This is an example configuration file.
3
 */
4

    
5
# Yet another comment
6

    
7
router id 62.168.0.1;
8

    
9
define xyzzy = 120+10;
10

    
11
function startup () 
12
int i; 
13
{ 
14
	print "Bird filter language: selftesting...";
15
	i = 4; 
16
	i = 1230 + i; 
17
	print "Testing arithmetics: 1234 = " i;
18
	if i = 4 then { print "*** FAIL: if 0"; quitbird; } else print "test 1 passed";
19
	if 1234 = i then print "test 2 passed"; else { print "*** FAIL: if 1 else"; }
20
	if 1 <= 1 then print "test 3 passed"; else { print "*** FAIL: test 3"; }
21
	if 1234 < 1234 then { print "*** FAIL: test 4"; quitbird; } else print "test 4 passed";
22

    
23
	
24
	print "done";
25
	quitbird;
26
	print "*** FAIL: this is unreachable"; 
27
}
28

    
29
filter testf 
30
int j; 
31
{ 
32
	j = const(4321); 
33
	print j;
34
}
35

    
36
protocol rip MyRIP_test {
37
	preference xyzzy;
38
	debug all;
39
	port 1520;
40
	period 5;
41
	garbagetime 30;
42
	interface "*";
43
}
44

    
45
protocol device {
46
#	disabled;
47
#	interface "eth*", "ppp*";
48
}
49

    
50
#protocol kernel {
51
#	disabled;
52
#	learn;			# Learn all routes from the kernel
53
#	scan time 10;		# Scan kernel tables every 10 seconds
54
#}
55

    
56
protocol static {
57
#	disabled;
58
	route 0.0.0.0/0 via 62.168.0.13;
59
	route 62.168.0.0/25 reject;
60
#	route 10.0.0.0/8 reject;
61
#	route 10.1.1.0:255.255.255.0 via 62.168.0.3;
62
#	route 10.1.2.0:255.255.255.0 via 62.168.0.3;
63
#	route 10.1.3.0:255.255.255.0 via 62.168.0.4;
64
#	route 10.2.0.0/24 via "arc0";
65
}