diff options
author | Florin Coras <fcoras@cisco.com> | 2019-08-03 18:53:48 -0700 |
---|---|---|
committer | Dave Wallace <dwallacelf@gmail.com> | 2019-08-05 16:22:17 +0000 |
commit | 470b2a61659d76c1fc03352d42af6f3f3945330f (patch) | |
tree | 6ad7f02b151e0a22df559ac125b8da919782e866 /src/vcl/vcl_bapi.c | |
parent | 7858d6e9e2e3aa118638676a202e600fc9668986 (diff) |
vcl: fix bapi disconnect with socket transport
Type:fix
Change-Id: I7b69c28118f3d7054a20ca48792dfc403a8e2694
Signed-off-by: Florin Coras <fcoras@cisco.com>
Diffstat (limited to 'src/vcl/vcl_bapi.c')
-rw-r--r-- | src/vcl/vcl_bapi.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/vcl/vcl_bapi.c b/src/vcl/vcl_bapi.c index 2bfc7c73f92..de64809d52a 100644 --- a/src/vcl/vcl_bapi.c +++ b/src/vcl/vcl_bapi.c @@ -681,6 +681,17 @@ vppcom_connect_to_vpp (char *app_name) return VPPCOM_OK; } +void +vppcom_disconnect_from_vpp (void) +{ + vppcom_cfg_t *vcl_cfg = &vcm->cfg; + + if (vcl_cfg->vpp_api_socket_name) + vl_socket_client_disconnect (); + else + vl_client_disconnect_from_vlib (); +} + /* * fd.io coding-style-patch-verification: ON * |