summaryrefslogtreecommitdiff
path: root/proto/static/config.Y
diff options
context:
space:
mode:
authorMartin Mares <mj@ucw.cz>1999-12-03 11:41:23 +0000
committerMartin Mares <mj@ucw.cz>1999-12-03 11:41:23 +0000
commitfeed82267663c6826da896309de180417bd0b39f (patch)
treea67184df9223e16bd0b59b69f5af0c45290deae6 /proto/static/config.Y
parent02c1fbddd462fecc6887a44ef67202870bcae7be (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.Y3
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