]> git.puffer.fish Git - mirror/frr.git/commitdiff
ospfd: fix no show database output when selecting vrf
authorLouis Scalbert <louis.scalbert@6wind.com>
Thu, 24 Dec 2020 13:41:31 +0000 (14:41 +0100)
committerIgor Ryzhov <iryzhov@nfware.com>
Wed, 20 Jan 2021 15:48:47 +0000 (18:48 +0300)
No output when selecting a vrf
frr# show ip ospf vrf default database router adv-router 10.125.0.1
VRF Name: default

       OSPF Router with ID (10.125.0.1)

In comparison with:
frr# show ip ospf database router adv-router 10.125.0.1

       OSPF Router with ID (10.125.0.1)

                Router Link States (Area 0.0.0.0)

  LS age: 155
  Options: 0x2  : *|-|-|-|-|-|E|-
(...)

Signed-off-by: Louis Scalbert <louis.scalbert@6wind.com>
ospfd/ospf_vty.c

index 83ad474f416b8471e445bc35760b2cc3027aafe0..f7b349e668039433e51d45d974106c9bd577b0cf 100644 (file)
@@ -6601,8 +6601,7 @@ DEFUN (show_ip_ospf_instance_database_type_adv_router,
                                        continue;
                                ospf_output = true;
                                ret = show_ip_ospf_database_type_adv_router_common(
-                                       vty, ospf, idx ? 1 : 0, argc, argv,
-                                       use_vrf);
+                                       vty, ospf, 2, argc, argv, use_vrf);
                        }
                        if (!ospf_output)
                                vty_out(vty, "%% OSPF instance not found\n");
@@ -6614,7 +6613,7 @@ DEFUN (show_ip_ospf_instance_database_type_adv_router,
                        }
 
                        ret = show_ip_ospf_database_type_adv_router_common(
-                               vty, ospf, idx ? 1 : 0, argc, argv, use_vrf);
+                               vty, ospf, 2, argc, argv, use_vrf);
                }
        } else {
                /* Display default ospf (instance 0) info */