diff options
author | Pavel Machek <pavel@ucw.cz> | 2000-04-17 12:42:28 +0200 |
---|---|---|
committer | Pavel Machek <pavel@ucw.cz> | 2000-04-17 12:42:28 +0200 |
commit | e399b6f6ad91e6f94081dfe694740451100c7a7f (patch) | |
tree | c4cb4aaf1920ca9e1bfaa43e74d37ad2ffe8b635 /filter/test.conf | |
parent | 1ed2fe960929081065e75a7fb4322f28a76c508b (diff) | |
download | bird-e399b6f6ad91e6f94081dfe694740451100c7a7f.tar bird-e399b6f6ad91e6f94081dfe694740451100c7a7f.zip |
Path and path matching seem to work, now.
Diffstat (limited to 'filter/test.conf')
-rw-r--r-- | filter/test.conf | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/filter/test.conf b/filter/test.conf index 94ed556..55cbf33 100644 --- a/filter/test.conf +++ b/filter/test.conf @@ -31,10 +31,18 @@ function fifteen() function paths() bgpmask p; +bgppath p2; { - print "Testing paths"; - p = / 1 2 3 4 /; - print p; + p = / 4 3 2 1 /; + print "Testing path masks: ", p; + p2 = prepend( + empty +, 1 ); + p2 = prepend( p2, 2 ); + p2 = prepend( p2, 3 ); + p2 = prepend( p2, 4 ); + print "Testing paths: ", p2; + print "Should be true: ", p2 ~ p; + p2 = prepend( p2, 5 ); + print "Should be false: ", p2 ~ p; } function startup() |