aboutsummaryrefslogtreecommitdiffstats
path: root/src/vcl
diff options
context:
space:
mode:
authorDave Wallace <dwallacelf@gmail.com>2018-03-08 11:40:28 -0500
committerKeith Burns <alagalah@gmail.com>2018-03-08 19:10:05 +0000
commit9a0546d8c595953cddf5bccfc8c3d0a81f79ad4e (patch)
tree24d5ff99592b2381f2abd2600488f40fc8d51b0b /src/vcl
parentfbbb07c33e201dd75b1ff0123553c3d7392df127 (diff)
VCL: cleanup namespace_secret env-var cfg code.
Change-Id: I9de8dd822494abe1b8701a72a9b8bede34dea8dc Signed-off-by: Dave Wallace <dwallacelf@gmail.com>
Diffstat (limited to 'src/vcl')
-rw-r--r--src/vcl/vppcom.c21
1 files changed, 1 insertions, 20 deletions
diff --git a/src/vcl/vppcom.c b/src/vcl/vppcom.c
index de540351d25..eddb9a0a5fa 100644
--- a/src/vcl/vppcom.c
+++ b/src/vcl/vppcom.c
@@ -2158,25 +2158,6 @@ vppcom_app_create (char *app_name)
"filename (%s) from " VPPCOM_ENV_API_PREFIX "!",
getpid (), env_var_str, vcl_cfg->vpp_api_filename);
}
-
- env_var_str = getenv (VPPCOM_ENV_APP_NAMESPACE_SECRET);
- if (env_var_str)
- {
- u64 tmp;
- if (sscanf (env_var_str, "%lu", &tmp) != 1)
- clib_warning ("VCL<%d>: WARNING: Invalid namespace secret "
- "specified in the environment variable "
- VPPCOM_ENV_APP_NAMESPACE_SECRET
- " (%s)!\n", getpid (), env_var_str);
- else
- {
- vcm->cfg.namespace_secret = tmp;
- if (VPPCOM_DEBUG > 0)
- clib_warning ("VCL<%d>: configured namespace secret "
- "(%lu) from " VPPCOM_ENV_APP_NAMESPACE_ID "!",
- getpid (), vcm->cfg.namespace_secret);
- }
- }
env_var_str = getenv (VPPCOM_ENV_APP_NAMESPACE_ID);
if (env_var_str)
{
@@ -2206,7 +2187,7 @@ vppcom_app_create (char *app_name)
if (VPPCOM_DEBUG > 0)
clib_warning ("VCL<%d>: configured namespace secret "
"(%lu) from "
- VPPCOM_ENV_APP_NAMESPACE_ID
+ VPPCOM_ENV_APP_NAMESPACE_SECRET
"!", getpid (), vcm->cfg.namespace_secret);
}
}