summaryrefslogtreecommitdiffstats
path: root/filter/test.conf
diff options
context:
space:
mode:
authorPavel Machek <pavel@ucw.cz>2000-04-26 10:03:50 +0200
committerPavel Machek <pavel@ucw.cz>2000-04-26 10:03:50 +0200
commit7a86a8b08db03f002a672d1e8a6481ad52114d1e (patch)
tree8836e9031a335c91a27ff89b238cf17f008a7a53 /filter/test.conf
parent471bd6c30bb0d172699ea7af8f8b9356c8fe48b3 (diff)
downloadbird-7a86a8b08db03f002a672d1e8a6481ad52114d1e.tar
bird-7a86a8b08db03f002a672d1e8a6481ad52114d1e.zip
Added code for testing filters.
Diffstat (limited to 'filter/test.conf')
-rw-r--r--filter/test.conf24
1 files changed, 24 insertions, 0 deletions
diff --git a/filter/test.conf b/filter/test.conf
index f1b3b66..f044177 100644
--- a/filter/test.conf
+++ b/filter/test.conf
@@ -116,6 +116,30 @@ ip p;
# print "*** FAIL: this is unreachable";
}
+function __test1()
+{
+ if source = RTS_STATIC then {
+ bgp_community = -empty-;
+ bgp_community.add((65000,5678));
+ if bgp_path ~ / 65000 / then
+ bgp_path.prepend(65000);
+ accept;
+ }
+ reject;
+}
+
+function __test2()
+{
+ if source = RTS_STATIC then {
+ bgp_community = -empty-;
+ bgp_community.add((65000,5678));
+ if bgp_path ~ / 65000 / then
+ bgp_path.prepend(65000);
+ accept;
+ }
+ reject;
+}
+
filter testf
int j;
{