Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions lib/services/profiles-api-service.js
Original file line number Diff line number Diff line change
Expand Up @@ -150,8 +150,12 @@ function profileApiServiceFactory(
if (node.type === 'switch') {
configuration = self.getSwitchDiscoveryConfiguration(node, options.switchVendor);
} else {
var rebootCode = 1; //ipmi power cycle
var setObm = configFile.get('autoCreateObm', 'false');
var skipReboot = configFile.get('skipResetPostDiscovery', 'false');
if (skipReboot === 'true') {
rebootCode = 127; // skip reset but terminate bootstrap
}
if (setObm === 'true') {
skipReboot = 'true';
}
Expand All @@ -164,6 +168,9 @@ function profileApiServiceFactory(
target: node.id,
'skip-reboot-post-discovery' : {
skipReboot: skipReboot,
},
'shell-reboot': {
rebootCode: rebootCode
}
},
nodeId: node.id
Expand All @@ -173,7 +180,11 @@ function profileApiServiceFactory(
},
'obm-option' : {
autoCreateObm: setObm,
},
'shell-reboot': {
rebootCode: rebootCode
}

}
};
}
Expand Down