summaryrefslogtreecommitdiff
path: root/ripd
diff options
context:
space:
mode:
authorhasso <hasso>2003-05-25 16:02:39 +0000
committerhasso <hasso>2003-05-25 16:02:39 +0000
commitdd55f9eb73347cb2bb7f8dc0f8108b21a733c9b4 (patch)
tree1bb13efc4119f0538e1b7386073ae8e4e82e8762 /ripd
parent4f84947985d5a8f43f6f694055333af1e897de0e (diff)
Unbroke "set metric" command in vtysh again.
Diffstat (limited to 'ripd')
-rw-r--r--ripd/rip_routemap.c13
1 files changed, 10 insertions, 3 deletions
diff --git a/ripd/rip_routemap.c b/ripd/rip_routemap.c
index b354a896..bab29f32 100644
--- a/ripd/rip_routemap.c
+++ b/ripd/rip_routemap.c
@@ -965,15 +965,21 @@ ALIAS (no_match_tag,
DEFUN (set_metric,
set_metric_cmd,
- "set metric (<0-4294967295>|<+/-metric>)",
+ "set metric <0-4294967295>",
SET_STR
"Metric value for destination routing protocol\n"
- "Metric value\n"
- "Add or subtract metric\n")
+ "Metric value\n")
{
return rip_route_set_add (vty, vty->index, "metric", argv[0]);
}
+ALIAS (set_metric,
+ set_metric_addsub_cmd,
+ "set metric <+/-metric>",
+ SET_STR
+ "Metric value for destination routing protocol\n"
+ "Add or subtract BGP metric\n")
+
DEFUN (no_set_metric,
no_set_metric_cmd,
"no set metric",
@@ -1121,6 +1127,7 @@ rip_route_map_init ()
install_element (RMAP_NODE, &no_match_tag_val_cmd);
install_element (RMAP_NODE, &set_metric_cmd);
+ install_element (RMAP_NODE, &set_metric_addsub_cmd);
install_element (RMAP_NODE, &no_set_metric_cmd);
install_element (RMAP_NODE, &no_set_metric_val_cmd);
install_element (RMAP_NODE, &set_ip_nexthop_cmd);