summaryrefslogtreecommitdiffstats
path: root/proto/static/config.Y
diff options
context:
space:
mode:
authorMartin Mares <mj@ucw.cz>1999-12-03 12:41:23 +0100
committerMartin Mares <mj@ucw.cz>1999-12-03 12:41:23 +0100
commitfeed82267663c6826da896309de180417bd0b39f (patch)
treea67184df9223e16bd0b59b69f5af0c45290deae6 /proto/static/config.Y
parent02c1fbddd462fecc6887a44ef67202870bcae7be (diff)
downloadbird-feed82267663c6826da896309de180417bd0b39f.tar
bird-feed82267663c6826da896309de180417bd0b39f.zip
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 df9e55b..1e2d7a8 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