summaryrefslogtreecommitdiffstats
path: root/filter/test.conf
diff options
context:
space:
mode:
authorOndrej Zajicek <santiago@crfreenet.org>2010-03-29 19:29:03 +0200
committerOndrej Zajicek <santiago@crfreenet.org>2010-03-29 19:29:03 +0200
commit126683feeda03ffb5a4ce23611e59a4598382d49 (patch)
tree9aeb9632949113b218b485100a9e52e008e8c1b9 /filter/test.conf
parenteb0f129fcedcecbee85403095abad8f59b82683c (diff)
downloadbird-126683feeda03ffb5a4ce23611e59a4598382d49.tar
bird-126683feeda03ffb5a4ce23611e59a4598382d49.zip
Filter language updates; new route attributes and datatype.
- Adds bgp_originator_id and bgp_cluster_list route attributes. - Adds dotted quad filter datatype (for router IDs, used by bgp_originator_id and ospf_router_id route attributes). - Fixes pair ~ pair set matching. - Documentation updates.
Diffstat (limited to 'filter/test.conf')
-rw-r--r--filter/test.conf15
1 files changed, 14 insertions, 1 deletions
diff --git a/filter/test.conf b/filter/test.conf
index 8eeb5c3..0483c3d 100644
--- a/filter/test.conf
+++ b/filter/test.conf
@@ -138,10 +138,12 @@ bool b;
prefix px;
ip p;
pair pp;
+quad qq;
int set is;
int set is1;
int set is2;
int set is3;
+pair set ps;
prefix set pxs;
string s;
{
@@ -190,7 +192,18 @@ string s;
pp = (1, 2);
print "Testing pairs: (1,2) = ", (1,2), " = ", pp, " = ", (1,1+1), " = ", 'mkpair-a'(2);
print " must be true: ", (1,2) = (1,1+1);
- print "Testing enums: ", RTS_DUMMY, " ", RTS_STATIC;
+ print "Testing enums: ", RTS_DUMMY, " ", RTS_STATIC, " ",
+ ", true: ", RTS_STATIC ~ [RTS_STATIC, RTS_DEVICE],
+ ", false: ", RTS_BGP ~ [RTS_STATIC, RTS_DEVICE];
+
+ ps = [(1,2), (3,4)..(3,8)];
+ print "Testing pair set (TTF):", pp ~ ps, " ", (3,5) ~ ps, " ", (3,9) ~ ps;
+
+ qq = 1.2.3.4;
+ print "Testinq quad: 1.2.3.4 = ", qq,
+ ", true: ", qq = 1.2.3.4, " ", qq ~ [1.2.3.4, 5.6.7.8],
+ ", false: ", qq = 4.3.2.1, " ", qq ~ [1.2.1.1, 1.2.3.5];
+
s = "Hello";
print "Testing string: ", s, " true: ", s ~ "Hell*", " false: ", s ~ "ell*";