summaryrefslogtreecommitdiffstats
path: root/bird.conf
diff options
context:
space:
mode:
authorPavel Machek <pavel@ucw.cz>2000-04-20 12:24:41 +0200
committerPavel Machek <pavel@ucw.cz>2000-04-20 12:24:41 +0200
commit77f37ae0994774f6402499e0a79287d85afa6edf (patch)
tree27258bc5b367790e4ca75f9a2bb2e2ae32ca8484 /bird.conf
parent5f532adde20300ecab63d3e521fb0dfbfb33df2b (diff)
downloadbird-77f37ae0994774f6402499e0a79287d85afa6edf.tar
bird-77f37ae0994774f6402499e0a79287d85afa6edf.zip
Test new syntax of add() and delete().
Diffstat (limited to 'bird.conf')
-rw-r--r--bird.conf22
1 files changed, 22 insertions, 0 deletions
diff --git a/bird.conf b/bird.conf
index 35b8d3c..e6c6c8e 100644
--- a/bird.conf
+++ b/bird.conf
@@ -13,6 +13,7 @@ protocol rip MyRIP_test {
port 1520;
period 7;
garbagetime 60;
+
interface "*" { mode broadcast; };
honour neighbour;
# passwords { password "ahoj" from 0 to 10;
@@ -39,6 +40,27 @@ protocol kernel {
protocol static {
# disabled;
+
+ import filter { print "ahoj";
+ rip_metric = 1;
+ print rip_metric;
+ rip_metric = rip_metric + 5;
+ print rip_metric;
+ bgp_community = - empty - ;
+ print "nazdar";
+ bgp_community = add(bgp_community, (1,2));
+ print "cau";
+ bgp_community = add(bgp_community, (2,3));
+ bgp_community.add((4,5));
+ print "community = ", bgp_community;
+ bgp_community.delete((2,3));
+ print "community = ", bgp_community;
+ bgp_community.empty;
+ print "community = ", bgp_community;
+ print "done";
+ quitbird;
+ };
+
route 0.0.0.0/0 via 195.113.31.113;
route 62.168.0.0/25 reject;
route 1.2.3.4/32 via 195.113.31.124;