aboutsummaryrefslogtreecommitdiffstats
path: root/src/vpp/api/custom_dump.c
diff options
context:
space:
mode:
authorSteven Luong <sluong@cisco.com>2020-01-16 08:45:53 -0800
committerNeale Ranns <nranns@cisco.com>2020-01-16 18:57:39 +0000
commit1bf83b9d9bd9013cd07435c5bf0c5a584906857a (patch)
treed0cf4471ca948cb7dca39bb453bfa8649188294e /src/vpp/api/custom_dump.c
parenta420c5e6c163b09eaa12ee352b0757a10cd86f3e (diff)
misc: binary-api sw_interface_vhost_user_dump is broken
Recent modificaton to vhost_user APIs for typing which added a sw_if_index filter to the API sw_interface_vhost_user_dump with the default value -1 to mean all interfaces. But the default is not set from api_format.c, causing the binary-api command for sw_interface_vhost_user_dump to display nothing. Also missing is the proper display on custom dump for the aformentioned API. Type: fix Signed-off-by: Steven Luong <sluong@cisco.com> Change-Id: I05546e2318165af7531977fbed66ea7224c4a7ce
Diffstat (limited to 'src/vpp/api/custom_dump.c')
-rw-r--r--src/vpp/api/custom_dump.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/vpp/api/custom_dump.c b/src/vpp/api/custom_dump.c
index 6e47a79a616..f79f7cc9a7d 100644
--- a/src/vpp/api/custom_dump.c
+++ b/src/vpp/api/custom_dump.c
@@ -1767,6 +1767,7 @@ static void *vl_api_sw_interface_vhost_user_dump_t_print
u8 *s;
s = format (0, "SCRIPT: sw_interface_vhost_user_dump ");
+ s = format (s, "sw_if_index %d ", (mp->sw_if_index));
FINISH;
}