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

Check eth0 in nnictl #2566

Merged
merged 10 commits into from
Jun 22, 2020
Merged

Check eth0 in nnictl #2566

merged 10 commits into from
Jun 22, 2020

Conversation

SparkSnail
Copy link
Contributor

No description provided.

@@ -297,10 +298,19 @@ def validate_pai_trial_conifg(experiment_config):
print_warning(warning_information.format('outputDir'))
validate_pai_config_path(experiment_config)

def validate_eth0_device(experiment_config):
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

do we need to remove the previous validation code?

Copy link
Contributor Author

@SparkSnail SparkSnail Jun 18, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

no, the previous code is used in nniManager, it is used to get ip address and not only for validation, they are two independent logic. In nniManager's code, it is normal to throw error when can not get os.networkInterfaces().eth0 as an independent function.https://github.com/microsoft/nni/blob/master/src/nni_manager/common/utils.ts#L219

@SparkSnail SparkSnail merged commit 76586fc into microsoft:master Jun 22, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants