]> git.proxmox.com Git - mirror_frr.git/blobdiff - zebra/zebra_vty.c
zebra: print unknown rule family as number
[mirror_frr.git] / zebra / zebra_vty.c
index 95cbd5dd2396c447b5942ee2cbf1cab7eb8235a6..c8b96011dc3b5ed85219b968ea3b9c98202f61b4 100644 (file)
@@ -381,6 +381,9 @@ static void vty_show_ip_route_detail(struct vty *vty, struct route_node *rn,
                                                sizeof buf, 1));
                        }
 
+                       if (nexthop->weight)
+                               vty_out(vty, ", weight %u", nexthop->weight);
+
                        vty_out(vty, "\n");
                }
                vty_out(vty, "\n");
@@ -1241,6 +1244,9 @@ static void show_nexthop_group_out(struct vty *vty, struct nhg_hash_entry *nhe)
                                               sizeof(buf), 1));
                }
 
+               if (nexthop->weight)
+                       vty_out(vty, ", weight %u", nexthop->weight);
+
                vty_out(vty, "\n");
        }
 
@@ -1345,9 +1351,10 @@ DEFPY (show_interface_nexthop_group,
 
 DEFPY (show_nexthop_group,
        show_nexthop_group_cmd,
-       "show nexthop-group <(0-4294967295)$id|[<ip$v4|ipv6$v6>] [vrf <NAME$vrf_name|all$vrf_all>]>",
+       "show nexthop-group rib <(0-4294967295)$id|[<ip$v4|ipv6$v6>] [vrf <NAME$vrf_name|all$vrf_all>]>",
        SHOW_STR
        "Show Nexthop Groups\n"
+       "RIB information\n"
        "Nexthop Group ID\n"
        IP_STR
        IP6_STR