misc: bond_create is broken for custom dump print 02/22002/2
authorSteven Luong <sluong@cisco.com>
Wed, 11 Sep 2019 17:49:30 +0000 (10:49 -0700)
committerDamjan Marion <dmarion@me.com>
Wed, 11 Sep 2019 19:37:07 +0000 (19:37 +0000)
Regression from https://gerrit.fd.io/r/#/c/vpp/+/21508/
The aformentioned patch changed lb and mode to u32. But it does not make the
same change to custom_dump.c

Type: fix

Signed-off-by: Steven Luong <sluong@cisco.com>
Change-Id: I2b7d065e21427090af3deb47c8a24c5da679e4f5

src/vpp/api/custom_dump.c

index 8ef78cb..a96ffd0 100644 (file)
@@ -663,9 +663,9 @@ static void *vl_api_bond_create_t_print
     s = format (s, "mac-address %U ",
                format_ethernet_address, mp->mac_address);
   if (mp->mode)
-    s = format (s, "mode %U ", format_bond_mode, mp->mode);
+    s = format (s, "mode %U ", format_bond_mode, ntohl (mp->mode));
   if (mp->lb)
-    s = format (s, "lb %U ", format_bond_load_balance, mp->lb);
+    s = format (s, "lb %U ", format_bond_load_balance, ntohl (mp->lb));
   if (mp->numa_only)
     s = format (s, "numa-only is set in lacp mode");
   if (mp->id != ~0)