diff options
author | Steven Luong <sluong@cisco.com> | 2019-09-11 10:49:30 -0700 |
---|---|---|
committer | Andrew Yourtchenko <ayourtch@gmail.com> | 2020-08-07 20:49:18 +0000 |
commit | 51a6508d2d683ae019ac8793c829029c11bb7b8a (patch) | |
tree | a28e56abe0c46526ba904d8bf05c252f44725eb0 /src | |
parent | 69bafd77ebbfafc851938e13e3c11a7090b75303 (diff) |
misc: bond_create is broken for custom dump print
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
(cherry picked from commit b0876964893565d95fa934c9603dcde46a8caa0c)
Diffstat (limited to 'src')
-rw-r--r-- | src/vpp/api/custom_dump.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/vpp/api/custom_dump.c b/src/vpp/api/custom_dump.c index b7e6b6f3e19..011a0e12db5 100644 --- a/src/vpp/api/custom_dump.c +++ b/src/vpp/api/custom_dump.c @@ -662,9 +662,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) |