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

Commit

Permalink
allow host name as remote ip (#2550)
Browse files Browse the repository at this point in the history
Co-authored-by: liuzhe <zhe.liu@microsoft.com>
  • Loading branch information
liuzhe-lz and liuzhe authored Jun 12, 2020
1 parent 54496c2 commit 52f71f5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
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

0 comments on commit 52f71f5

Please sign in to comment.