]> git.ipfire.org Git - thirdparty/bird.git/blob - bird.conf
Test new syntax of add() and delete().
[thirdparty/bird.git] / bird.conf
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 protocol rip MyRIP_test {
12 debug all;
13 port 1520;
14 period 7;
15 garbagetime 60;
16
17 interface "*" { mode broadcast; };
18 honour neighbour;
19 # passwords { password "ahoj" from 0 to 10;
20 # password "nazdar" from 10;
21 # }
22 authentication none;
23 import filter { print "importing"; accept; };
24 export filter { print "exporting"; accept; };
25 }
26
27 protocol device {
28 # disabled;
29 # interface "eth*", "ppp*";
30 }
31
32 protocol direct {
33 }
34
35 protocol kernel {
36 disabled;
37 # learn; # Learn all routes from the kernel
38 # scan time 10; # Scan kernel tables every 10 seconds
39 }
40
41 protocol static {
42 # disabled;
43
44 import filter { print "ahoj";
45 rip_metric = 1;
46 print rip_metric;
47 rip_metric = rip_metric + 5;
48 print rip_metric;
49 bgp_community = - empty - ;
50 print "nazdar";
51 bgp_community = add(bgp_community, (1,2));
52 print "cau";
53 bgp_community = add(bgp_community, (2,3));
54 bgp_community.add((4,5));
55 print "community = ", bgp_community;
56 bgp_community.delete((2,3));
57 print "community = ", bgp_community;
58 bgp_community.empty;
59 print "community = ", bgp_community;
60 print "done";
61 quitbird;
62 };
63
64 route 0.0.0.0/0 via 195.113.31.113;
65 route 62.168.0.0/25 reject;
66 route 1.2.3.4/32 via 195.113.31.124;
67 # route 10.0.0.0/8 reject;
68 # route 10.1.1.0:255.255.255.0 via 62.168.0.3;
69 # route 10.1.2.0:255.255.255.0 via 62.168.0.3;
70 # route 10.1.3.0:255.255.255.0 via 62.168.0.4;
71 # route 10.2.0.0/24 via "arc0";
72 export all;
73 }