Skip to content
This repository has been archived by the owner on Sep 18, 2024. It is now read-only.

Allow host name as remote server IP #2550

Merged
merged 1 commit into from
Jun 12, 2020
Merged
Show file tree
Hide file tree
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
4 changes: 2 additions & 2 deletions docs/en_US/Tutorial/ExperimentConfig.md
Original file line number Diff line number Diff line change
Expand Up @@ -528,9 +528,9 @@ Required in remote mode. A list of key-value pairs with the following keys.

#### ip

Required. IP address that is accessible from the current machine.
Required. IP address or host name that is accessible from the current machine.

The IP address of remote machine.
The IP address or host name of remote machine.

#### port

Expand Down
2 changes: 1 addition & 1 deletion src/nni_manager/rest_server/restValidationSchemas.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ export namespace ValidationSchemas {
body: {
machine_list: joi.array().items(joi.object({ // eslint-disable-line @typescript-eslint/camelcase
username: joi.string().required(),
ip: joi.string().ip().required(),
ip: joi.string().hostname().required(),
port: joi.number().min(1).max(65535).required(),
passwd: joi.string(),
sshKeyPath: joi.string(),
Expand Down