diff options
author | Martin Mares <mj@ucw.cz> | 1999-12-03 11:41:23 +0000 |
---|---|---|
committer | Martin Mares <mj@ucw.cz> | 1999-12-03 11:41:23 +0000 |
commit | feed82267663c6826da896309de180417bd0b39f (patch) | |
tree | a67184df9223e16bd0b59b69f5af0c45290deae6 /proto/static/config.Y | |
parent | 02c1fbddd462fecc6887a44ef67202870bcae7be (diff) |
Implemented `show static'. It's a relatively good example of how to write
show commands for other protocols.
Diffstat (limited to 'proto/static/config.Y')
-rw-r--r-- | proto/static/config.Y | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/proto/static/config.Y b/proto/static/config.Y index df9e55b3..1e2d7a86 100644 --- a/proto/static/config.Y +++ b/proto/static/config.Y @@ -57,6 +57,9 @@ stat_route: | stat_route0 PROHIBIT { this_srt->dest = RTD_PROHIBIT; } ; +CF_CLI(SHOW STATIC, optsym, [<name>], [[Show details of static protocol]]) +{ static_show(proto_get_named($3, &proto_static)); } ; + CF_CODE CF_END |