diff options
author | Martin Mares <mj@ucw.cz> | 1999-12-02 15:04:44 +0100 |
---|---|---|
committer | Martin Mares <mj@ucw.cz> | 1999-12-02 15:04:44 +0100 |
commit | 430da60fa29196cf8715e09e1d81c7ea0b672f05 (patch) | |
tree | d610f309e63a5243975e312f8be17c0b8422914c /nest | |
parent | f2c6c80a2422b87a2947b7324ad14309198d64a4 (diff) | |
download | bird-430da60fa29196cf8715e09e1d81c7ea0b672f05.tar bird-430da60fa29196cf8715e09e1d81c7ea0b672f05.zip |
Implemented `show route where <condition>' command.
Pavel, please check my addition to filter/config.Y.
Diffstat (limited to 'nest')
-rw-r--r-- | nest/config.Y | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/nest/config.Y b/nest/config.Y index 89177a7..01d34fa 100644 --- a/nest/config.Y +++ b/nest/config.Y @@ -237,8 +237,14 @@ r_args: } | r_args FILTER filter { $$ = $1; + if ($$->filter != FILTER_ACCEPT) cf_error("Filter specified twice"); $$->filter = $3; } + | r_args where_filter { + $$ = $1; + if ($$->filter != FILTER_ACCEPT) cf_error("Filter specified twice"); + $$->filter = $2; + } | r_args ALL { $$ = $1; $$->verbose = 1; |