OSPF6_CMD_CHECK_RUNNING doesn't check that ospf6 is not NULL.
Signed-off-by: Igor Ryzhov <iryzhov@nfware.com>
bool detail = false;
ospf6 = ospf6_lookup_by_vrf_name(VRF_DEFAULT_NAME);
bool detail = false;
ospf6 = ospf6_lookup_by_vrf_name(VRF_DEFAULT_NAME);
- OSPF6_CMD_CHECK_RUNNING();
+ if (ospf6 == NULL) {
+ vty_out(vty, "OSPFv3 is not configured\n");
+ return CMD_SUCCESS;
+ }
if (argv_find(argv, argc, "detail", &idx))
detail = true;
if (argv_find(argv, argc, "detail", &idx))
detail = true;