summaryrefslogtreecommitdiffstats
path: root/ospfd
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@cumulusnetworks.com>2016-02-24 13:43:22 +0100
committerDonald Sharp <sharpd@cumulusnetworks.com>2016-02-24 13:43:22 +0100
commita1afa410daae22e82530bc4f23f3727820cb39c5 (patch)
tree9e4607cf7d9ec3100ac3b38968adc415ff819082 /ospfd
parentospf6d: Fix for crash when non area 0 network entered first (diff)
downloadfrr-a1afa410daae22e82530bc4f23f3727820cb39c5.tar.xz
frr-a1afa410daae22e82530bc4f23f3727820cb39c5.zip
ospfd: Fix some missing 'no XXX' commands
A recent modification accidently removed the 'no XXXX' form of some commands that cl-ospf depended on. Tickets: CM-9481 Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com> Reviewed-by: Daniel Walton <dwalton@cumulusnetworks.com>
Diffstat (limited to 'ospfd')
-rw-r--r--ospfd/ospf_vty.c27
1 files changed, 27 insertions, 0 deletions
diff --git a/ospfd/ospf_vty.c b/ospfd/ospf_vty.c
index f16b7d4c1..d28eecf9c 100644
--- a/ospfd/ospf_vty.c
+++ b/ospfd/ospf_vty.c
@@ -7550,6 +7550,14 @@ DEFUN (no_ip_ospf_priority,
}
ALIAS (no_ip_ospf_priority,
+ no_ip_ospf_priority_no_param_cmd,
+ "no ip ospf priority",
+ NO_STR
+ "IP Information\n"
+ "OSPF interface commands\n"
+ "Router priority\n");
+
+ALIAS (no_ip_ospf_priority,
no_ip_ospf_priority_cmd,
"no ip ospf priority <0-255>",
NO_STR
@@ -8832,6 +8840,14 @@ DEFUN (no_ospf_max_metric_router_lsa_startup,
return CMD_SUCCESS;
}
+ALIAS (no_ospf_max_metric_router_lsa_startup,
+ no_ospf_max_metric_router_lsa_startup_no_param_cmd,
+ "no max-metric router-lsa on-startup",
+ NO_STR
+ "OSPF maximum / infinite-distance metric\n"
+ "Advertise own Router-LSA with infinite distance (stub router)\n"
+ "Automatically advertise stub Router-LSA on startup of OSPF\n");
+
DEFUN (ospf_max_metric_router_lsa_shutdown,
ospf_max_metric_router_lsa_shutdown_cmd,
"max-metric router-lsa on-shutdown <5-100>",
@@ -8878,6 +8894,14 @@ DEFUN (no_ospf_max_metric_router_lsa_shutdown,
return CMD_SUCCESS;
}
+ALIAS (no_ospf_max_metric_router_lsa_shutdown,
+ no_ospf_max_metric_router_lsa_shutdown_no_param_cmd,
+ "no max-metric router-lsa on-shutdown",
+ NO_STR
+ "OSPF maximum / infinite-distance metric\n"
+ "Advertise own Router-LSA with infinite distance (stub router)\n"
+ "Advertise stub-router prior to full shutdown of OSPF\n");
+
static void
config_write_stub_router (struct vty *vty, struct ospf *ospf)
{
@@ -10110,6 +10134,7 @@ ospf_vty_if_init (void)
install_element (INTERFACE_NODE, &ip_ospf_priority_addr_cmd);
install_element (INTERFACE_NODE, &ip_ospf_priority_cmd);
install_element (INTERFACE_NODE, &no_ip_ospf_priority_cmd);
+ install_element (INTERFACE_NODE, &no_ip_ospf_priority_no_param_cmd);
install_element (INTERFACE_NODE, &no_ip_ospf_priority_addr_cmd);
/* "ip ospf retransmit-interval" commands. */
@@ -10408,8 +10433,10 @@ ospf_vty_init (void)
install_element (OSPF_NODE, &no_ospf_max_metric_router_lsa_admin_cmd);
install_element (OSPF_NODE, &ospf_max_metric_router_lsa_startup_cmd);
install_element (OSPF_NODE, &no_ospf_max_metric_router_lsa_startup_cmd);
+ install_element (OSPF_NODE, &no_ospf_max_metric_router_lsa_startup_no_param_cmd);
install_element (OSPF_NODE, &ospf_max_metric_router_lsa_shutdown_cmd);
install_element (OSPF_NODE, &no_ospf_max_metric_router_lsa_shutdown_cmd);
+ install_element (OSPF_NODE, &no_ospf_max_metric_router_lsa_shutdown_no_param_cmd);
/* reference bandwidth commands */
install_element (OSPF_NODE, &ospf_auto_cost_reference_bandwidth_cmd);