ospf6d, ripd, vtysh: Fix "no set metric" for ospf6 and RIP
Allow the user to actually turn off the set metric command
in ospf6d and rip.
Signed-off-by: Daniel Walton <dwalton@cumulusnetworks.com>
diff --git a/ripd/rip_routemap.c b/ripd/rip_routemap.c
index 37a986c..9bafdcd 100644
--- a/ripd/rip_routemap.c
+++ b/ripd/rip_routemap.c
@@ -1000,11 +1000,18 @@
ALIAS (no_set_metric,
no_set_metric_val_cmd,
- "no set metric (<0-4294967295>|<+/-metric>)",
+ "no set metric <0-4294967295>",
NO_STR
SET_STR
"Metric value for destination routing protocol\n"
- "Metric value\n"
+ "Metric value\n")
+
+ALIAS (no_set_metric,
+ no_set_metric_addsub_cmd,
+ "no set metric <+/-metric>",
+ NO_STR
+ SET_STR
+ "Metric value for destination routing protocol\n"
"Add or subtract metric\n")
DEFUN (set_ip_nexthop,
@@ -1135,6 +1142,7 @@
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, &no_set_metric_addsub_cmd);
install_element (RMAP_NODE, &set_ip_nexthop_cmd);
install_element (RMAP_NODE, &no_set_ip_nexthop_cmd);
install_element (RMAP_NODE, &no_set_ip_nexthop_val_cmd);