Skip to content

Commit

Permalink
Fixes EUCA-12540
Browse files Browse the repository at this point in the history
set default value of VNET_MODE configuration value to be INVALID to force configuration.
  • Loading branch information
Jeremy Breiding committed Aug 25, 2016
1 parent 8571332 commit 9228294
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion cluster/config-cc.h
Expand Up @@ -101,7 +101,7 @@ configEntry configKeysRestartCC[] = {
,
{"VNET_MACMAP", NULL}
,
{"VNET_MODE", "SYSTEM"}
{"VNET_MODE", NETMODE_INVALID}
,
{"VNET_NETMASK", NULL}
,
Expand Down
4 changes: 2 additions & 2 deletions node/handlers.c
Expand Up @@ -2779,8 +2779,8 @@ static int init(void)

tmp = getConfString(nc_state.configFiles, 2, "VNET_MODE");
if (!tmp) {
LOGWARN("VNET_MODE is not defined, defaulting to '%s'\n", NETMODE_MANAGED_NOVLAN);
tmp = strdup(NETMODE_MANAGED_NOVLAN);
LOGWARN("VNET_MODE is not defined, defaulting to '%s'\n", NETMODE_INVALID);
tmp = strdup(NETMODE_INVALID);
if (!tmp) {
LOGFATAL("Out of memory\n");
return (EUCA_FATAL_ERROR);
Expand Down

0 comments on commit 9228294

Please sign in to comment.