From feed82267663c6826da896309de180417bd0b39f Mon Sep 17 00:00:00 2001 From: Martin Mares Date: Fri, 3 Dec 1999 11:41:23 +0000 Subject: Implemented `show static'. It's a relatively good example of how to write show commands for other protocols. --- proto/static/config.Y | 3 +++ 1 file changed, 3 insertions(+) (limited to 'proto/static/config.Y') 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, [], [[Show details of static protocol]]) +{ static_show(proto_get_named($3, &proto_static)); } ; + CF_CODE CF_END -- cgit v1.2.3