]> git.puffer.fish Git - mirror/frr.git/commitdiff
ospf6d: fix "no router ospf6" 391/head
authorRenato Westphal <renato@opensourcerouting.org>
Sat, 22 Apr 2017 20:41:54 +0000 (17:41 -0300)
committerRenato Westphal <renato@opensourcerouting.org>
Sat, 22 Apr 2017 20:51:14 +0000 (17:51 -0300)
The "no router ospf6" command wasn't working.

Regression introduced by commit 16cedbb.

Signed-off-by: Renato Westphal <renato@opensourcerouting.org>
ospf6d/ospf6_top.c

index f2a1c8c2ecfbc65f0a88018f11f3645b920e6926..e592d3c4f9cde60e587cc7a4e069e007861a1d40 100644 (file)
@@ -315,6 +315,14 @@ DEFUN (no_router_ospf6,
        ROUTER_STR
        OSPF6_STR)
 {
+  if (ospf6 == NULL)
+    vty_out (vty, "OSPFv3 is not configured%s", VNL);
+  else
+    {
+      ospf6_delete (ospf6);
+      ospf6 = NULL;
+    }
+
   /* return to config node . */
   VTY_PUSH_CONTEXT_NULL(CONFIG_NODE);