Revision cf98be7b nest/config.Y

View differences:

nest/config.Y
44 44

  
45 45
CF_KEYWORDS(ROUTER, ID, PROTOCOL, TEMPLATE, PREFERENCE, DISABLED, DEBUG, ALL, OFF, DIRECT)
46 46
CF_KEYWORDS(INTERFACE, IMPORT, EXPORT, FILTER, NONE, TABLE, STATES, ROUTES, FILTERS)
47
CF_KEYWORDS(LIMIT, ACTION, WARN, BLOCK, RESTART, DISABLE)
47
CF_KEYWORDS(LIMIT, ACTION, WARN, BLOCK, RESTART, DISABLE, KEEP, REJECTED)
48 48
CF_KEYWORDS(PASSWORD, FROM, PASSIVE, TO, ID, EVENTS, PACKETS, PROTOCOLS, INTERFACES)
49 49
CF_KEYWORDS(PRIMARY, STATS, COUNT, FOR, COMMANDS, PREEXPORT, GENERATE, ROA, MAX, FLUSH)
50 50
CF_KEYWORDS(LISTEN, BGP, V6ONLY, DUAL, ADDRESS, PORT, PASSWORDS, DESCRIPTION, SORTED)
......
187 187
 | EXPORT imexport { this_proto->out_filter = $2; }
188 188
 | IMPORT LIMIT limit_spec { this_proto->in_limit = $3; }
189 189
 | EXPORT LIMIT limit_spec { this_proto->out_limit = $3; }
190
 | IMPORT KEEP REJECTED bool { this_proto->in_keep_rejected = $4; }
190 191
 | TABLE rtable { this_proto->table = $2; }
191 192
 | ROUTER ID idval { this_proto->router_id = $3; }
192 193
 | DESCRIPTION TEXT { this_proto->dsc = $2; }
......
405 406
{ if_show_summary(); } ;
406 407

  
407 408
CF_CLI_HELP(SHOW ROUTE, ..., [[Show routing table]])
408
CF_CLI(SHOW ROUTE, r_args, [[[<prefix>|for <prefix>|for <ip>] [table <t>] [filter <f>|where <cond>] [all] [primary] [(export|preexport) <p>] [protocol <p>] [stats|count]]], [[Show routing table]])
409
CF_CLI(SHOW ROUTE, r_args, [[[<prefix>|for <prefix>|for <ip>] [table <t>] [filter <f>|where <cond>] [all] [primary] [rejected] [(export|preexport) <p>] [protocol <p>] [stats|count]]], [[Show routing table]])
409 410
{ rt_show($3); } ;
410 411

  
411 412
r_args:
......
451 452
     $$ = $1;
452 453
     $$->primary_only = 1;
453 454
   }
455
 | r_args REJECTED {
456
     $$ = $1;
457
     $$->rejected = 1;
458
   }
454 459
 | r_args export_or_preexport SYM {
455 460
     struct proto_config *c = (struct proto_config *) $3->def;
456 461
     $$ = $1;

Also available in: Unified diff