diff options
author | Martin Mares <mj@ucw.cz> | 2000-05-07 11:28:59 +0000 |
---|---|---|
committer | Martin Mares <mj@ucw.cz> | 2000-05-07 11:28:59 +0000 |
commit | 23693958aa95edf5baaeaa5baa55725dc4895681 (patch) | |
tree | a1b9778ba0cb83636ec25b9e00812fbb8a556485 /nest/config.Y | |
parent | 6998bb9ee345a0e8b558fc87133f1c2a442b7096 (diff) |
Implemented `show route <...> stats'.
Diffstat (limited to 'nest/config.Y')
-rw-r--r-- | nest/config.Y | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/nest/config.Y b/nest/config.Y index 5ac9c213..65142f76 100644 --- a/nest/config.Y +++ b/nest/config.Y @@ -22,7 +22,7 @@ CF_DECLS CF_KEYWORDS(ROUTER, ID, PROTOCOL, PREFERENCE, DISABLED, DEBUG, ALL, OFF, DIRECT) CF_KEYWORDS(INTERFACE, IMPORT, EXPORT, FILTER, NONE, TABLE, STATES, ROUTES, FILTERS) CF_KEYWORDS(PASSWORD, FROM, PASSIVE, TO, ID, EVENTS, PACKETS, PROTOCOLS, INTERFACES) -CF_KEYWORDS(PRIMARY) +CF_KEYWORDS(PRIMARY, STATS) CF_ENUM(T_ENUM_RTS, RTS_, DUMMY, STATIC, INHERIT, DEVICE, STATIC_DEVICE, REDIRECT, RIP, OSPF, OSPF_EXT, OSPF_IA, OSPF_BOUNDARY, BGP, PIPE) @@ -240,7 +240,7 @@ CF_CLI(SHOW INTERFACES,,, [[Show network interfaces]]) CF_CLI(SHOW INTERFACES SUMMARY,,, [[Show summary of network interfaces]]) { if_show_summary(); } ; -CF_CLI(SHOW ROUTE, r_args, [<prefix>] [table <t>] [filter <f>] [all] [primary] [(import|protocol) <p>], [[Show routing table]]) +CF_CLI(SHOW ROUTE, r_args, [<prefix>] [table <t>] [filter <f>] [all] [primary] [(import|protocol) <p>] [stats], [[Show routing table]]) { rt_show($3); } ; r_args: @@ -290,6 +290,10 @@ r_args: $$->import_protocol = c->proto; $$->running_on_config = c->proto->cf->global; } + | r_args STATS { + $$ = $1; + $$->stats = 1; + } ; import_or_proto: |