Merge pull request #391 from opensourcerouting/fix-no-router-ospf6

ospf6d: fix "no router ospf6"
This commit is contained in:
Donald Sharp 2017-04-22 17:55:26 -04:00 committed by GitHub
commit 9a09fb8e95

View 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);