[cmaster-next] [PATCH 2/2] pimd: Fix large integer display of drpriority
Donald Sharp
sharpd at cumulusnetworks.com
Wed Nov 30 08:23:12 EST 2016
When displaying drpriority you can enter unsigned
integer values from 1-2^32. The display was
turning the unsigned value into a signed value
and thus we were displaying the wrong value.
Ticket: CM-13787
Signed-off-by: Donald Sharp <sharpd at cumulusnetworks.com>
Reviewed-by: David Ahern <dsa at cumulusnetworks.com>
(cherry picked from commit db17265f1025e3ec578998ad537c33b49ed33cde)
---
pimd/pim_vty.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/pimd/pim_vty.c b/pimd/pim_vty.c
index f1c8930..037a00c 100644
--- a/pimd/pim_vty.c
+++ b/pimd/pim_vty.c
@@ -148,7 +148,7 @@ int pim_interface_config_write(struct vty *vty)
/* IF ip pim drpriority */
if (pim_ifp->pim_dr_priority != PIM_DEFAULT_DR_PRIORITY) {
- vty_out(vty, " ip pim drpriority %d%s", pim_ifp->pim_dr_priority,
+ vty_out(vty, " ip pim drpriority %u%s", pim_ifp->pim_dr_priority,
VTY_NEWLINE);
++writes;
}
--
2.5.5
More information about the dev
mailing list