From ec423cc725d4b097e596dbadd84f3dea40deb0b8 Mon Sep 17 00:00:00 2001 From: Martin Mares Date: Thu, 8 Jun 2000 10:25:02 +0000 Subject: Updated CLI helps. --- nest/config.Y | 8 ++++---- proto/ospf/config.Y | 6 +++--- sysdep/unix/config.Y | 2 +- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/nest/config.Y b/nest/config.Y index 9454e62..67fb248 100644 --- a/nest/config.Y +++ b/nest/config.Y @@ -244,7 +244,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, [] [table ] [filter ] [all] [primary] [(import|protocol)

] [stats], [[Show routing table]]) +CF_CLI(SHOW ROUTE, r_args, [[for] |] [table ] [filter |where ] [all] [primary] [(import|protocol)

] [stats|count], [[Show routing table]]) { rt_show($3); } ; r_args: @@ -353,11 +353,11 @@ echo_size: } ; -CF_CLI(DISABLE, proto_patt, | | all, [[Disable protocol]]) +CF_CLI(DISABLE, proto_patt, | "" | all, [[Disable protocol]]) { proto_xxable($2, 0); } ; -CF_CLI(ENABLE, proto_patt, | | all, [[Enable protocol]]) +CF_CLI(ENABLE, proto_patt, | "" | all, [[Enable protocol]]) { proto_xxable($2, 1); } ; -CF_CLI(RESTART, proto_patt, | | all, [[Restart protocol]]) +CF_CLI(RESTART, proto_patt, | "" | all, [[Restart protocol]]) { proto_xxable($2, 2); } ; CF_CLI_HELP(DEBUG, ..., [[Control protocol debugging]]) diff --git a/proto/ospf/config.Y b/proto/ospf/config.Y index b5f46ea..c780238 100644 --- a/proto/ospf/config.Y +++ b/proto/ospf/config.Y @@ -151,13 +151,13 @@ CF_ADDTO(dynamic_attr, OSPF_METRIC1 { $$ = f_new_dynamic_attr(EAF_TYPE_INT | EAF CF_ADDTO(dynamic_attr, OSPF_METRIC2 { $$ = f_new_dynamic_attr(EAF_TYPE_INT | EAF_TEMP, T_INT, EA_OSPF_METRIC2); }) CF_ADDTO(dynamic_attr, OSPF_TAG { $$ = f_new_dynamic_attr(EAF_TYPE_INT | EAF_TEMP, T_INT, EA_OSPF_TAG); }) -CF_CLI(SHOW OSPF, optsym, [], [[Show information about ospf protocol]]) +CF_CLI(SHOW OSPF, optsym, [], [[Show information about OSPF protocol]]) { ospf_sh(proto_get_named($3, &proto_ospf)); } ; -CF_CLI(SHOW OSPF NEIGHBORS, optsym opttext, [] [\"\"], [[Show information about ospf neighbors]]) +CF_CLI(SHOW OSPF NEIGHBORS, optsym opttext, [] [\"\"], [[Show information about OSPF neighbors]]) { ospf_sh_neigh(proto_get_named($4, &proto_ospf), $5); } ; -CF_CLI(SHOW OSPF INTERFACE, optsym opttext, [] [\"\"], [[Show infomation about interface]]) +CF_CLI(SHOW OSPF INTERFACE, optsym opttext, [] [\"\"], [[Show information about interface]]) { ospf_sh_iface(proto_get_named($4, &proto_ospf), $5); }; CF_CODE diff --git a/sysdep/unix/config.Y b/sysdep/unix/config.Y index 320c154..81453e3 100644 --- a/sysdep/unix/config.Y +++ b/sysdep/unix/config.Y @@ -64,7 +64,7 @@ log_cat: /* Unix specific commands */ -CF_CLI(CONFIGURE, cfg_name, [], [[Reload configuration]]) +CF_CLI(CONFIGURE, cfg_name, [""], [[Reload configuration]]) { cmd_reconfig($2); } ; CF_CLI(DOWN,,, [[Shut the daemon down]]) -- cgit v1.2.3