Skip to content

Commit 3428897

Browse files
committed
ospf6d: fix "no router ospf6"
The "no router ospf6" command wasn't working. Regression introduced by commit 16cedbb. Signed-off-by: Renato Westphal <[email protected]>
1 parent e9e2716 commit 3428897

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

ospf6d/ospf6_top.c

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -315,6 +315,14 @@ DEFUN (no_router_ospf6,
315315
ROUTER_STR
316316
OSPF6_STR)
317317
{
318+
if (ospf6 == NULL)
319+
vty_out (vty, "OSPFv3 is not configured%s", VNL);
320+
else
321+
{
322+
ospf6_delete (ospf6);
323+
ospf6 = NULL;
324+
}
325+
318326
/* return to config node . */
319327
VTY_PUSH_CONTEXT_NULL(CONFIG_NODE);
320328

0 commit comments

Comments
 (0)