diff --git a/lib/ziti-tunnel-cbs/include/ziti/ziti_tunnel_cbs.h b/lib/ziti-tunnel-cbs/include/ziti/ziti_tunnel_cbs.h index d8e8c429..30d5eccb 100644 --- a/lib/ziti-tunnel-cbs/include/ziti/ziti_tunnel_cbs.h +++ b/lib/ziti-tunnel-cbs/include/ziti/ziti_tunnel_cbs.h @@ -91,7 +91,8 @@ XX(code, model_number, none, Code, __VA_ARGS__) #define TNL_LOAD_IDENTITY(XX, ...) \ XX(identifier, model_string, none, Identifier, __VA_ARGS__)\ XX(path, model_string, none, Path, __VA_ARGS__) \ -XX(config, ziti_config, ptr, Config, __VA_ARGS__) \ +XX(config, ziti_config, ptr, Config, __VA_ARGS__) \ +XX(disabled, model_bool, none, Disabled, __VA_ARGS__) \ XX(apiPageSize, model_number, none, ApiPageSize, __VA_ARGS__) #define TNL_ON_OFF_IDENTITY(XX, ...) \ diff --git a/lib/ziti-tunnel-cbs/ziti_tunnel_ctrl.c b/lib/ziti-tunnel-cbs/ziti_tunnel_ctrl.c index 25b688df..bc7535c2 100644 --- a/lib/ziti-tunnel-cbs/ziti_tunnel_ctrl.c +++ b/lib/ziti-tunnel-cbs/ziti_tunnel_ctrl.c @@ -238,7 +238,7 @@ static int process_cmd(const tunnel_command *cmd, command_cb cb, void *ctx) { result.error = "identifier is required when loading with config"; break; } - rc = load_identity_cfg(load.identifier, load.config, false, (int)load.apiPageSize, cb, ctx); + rc = load_identity_cfg(load.identifier, load.config, load.disabled, (int)load.apiPageSize, cb, ctx); } else if (load.path != NULL) { const char *id = load.identifier ? load.identifier : load.path; rc = load_identity(id, load.path, false, (int)load.apiPageSize, cb, ctx);