]> git.puffer.fish Git - mirror/frr.git/commitdiff
pbrd: fix large tableids displayed as negative 12778/head
authorWesley Coakley <wcoakley@nvidia.com>
Tue, 20 Jul 2021 13:25:01 +0000 (09:25 -0400)
committerMergify <37929162+mergify[bot]@users.noreply.github.com>
Thu, 9 Feb 2023 10:48:36 +0000 (10:48 +0000)
Ticket: 2699411
Signed-off-by: Wesley Coakley <wcoakley@nvidia.com>
(cherry picked from commit 8dc2001c914956f1b493c4e04499b520362dd053)

pbrd/pbr_vty.c

index e8e5981ec55e09ef06fd7bc1f78e8c7d0d3f4962..d9019c7093f3faf6fff3621242ccfc88b1c78657 100644 (file)
@@ -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));
@@ -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",