Skip to content

Commit

Permalink
Merge pull request FRRouting#12773 from donaldsharp/pbr_table_values
Browse files Browse the repository at this point in the history
pbrd: fix large tableids displayed as negative
  • Loading branch information
mobash-rasool authored Feb 9, 2023
2 parents f83956c + 8dc2001 commit 3e5da1f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions pbrd/pbr_vty.c
Original file line number Diff line number Diff line change
Expand Up @@ -933,12 +933,12 @@ static void vty_show_pbrms(struct vty *vty,

if (detail)
vty_out(vty,
" Installed: %u(%d) Tableid: %d\n",
" Installed: %u(%d) Tableid: %u\n",
pbrms->nhs_installed,
pbr_nht_get_installed(pbrms->nhgrp_name),
pbr_nht_get_table(pbrms->nhgrp_name));
else
vty_out(vty, " Installed: %s Tableid: %d\n",
vty_out(vty, " Installed: %s Tableid: %u\n",
pbr_nht_get_installed(pbrms->nhgrp_name) ? "yes"
: "no",
pbr_nht_get_table(pbrms->nhgrp_name));
Expand All @@ -948,12 +948,12 @@ static void vty_show_pbrms(struct vty *vty,
pbrms_nexthop_group_write_individual_nexthop(vty, pbrms);
if (detail)
vty_out(vty,
" Installed: %u(%d) Tableid: %d\n",
" Installed: %u(%d) Tableid: %u\n",
pbrms->nhs_installed,
pbr_nht_get_installed(pbrms->internal_nhg_name),
pbr_nht_get_table(pbrms->internal_nhg_name));
else
vty_out(vty, " Installed: %s Tableid: %d\n",
vty_out(vty, " Installed: %s Tableid: %u\n",
pbr_nht_get_installed(pbrms->internal_nhg_name)
? "yes"
: "no",
Expand Down

0 comments on commit 3e5da1f

Please sign in to comment.