-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Network] Present used arping tool to user #4821
Conversation
Signed-off-by: davidgraeff <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I added a comment, but feel free to ignore it this time ;-)
arpPingMethod = ArpPingUtilEnum.UNKNOWN_TOOL; | ||
return; | ||
} | ||
arpPingMethod = networkUtils.determineNativeARPpingMethod(arpPingUtilPath); | ||
switch (arpPingMethod) { | ||
case UNKNOWN_TOOL: { | ||
arpPingState = "Unknown arping tool"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You could also store these strings in the enum, then they are closer together, or maybe using a map. This could also work but imho the other options are a little bit more elegant.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I might want to apply I18n at some point and thus not hardcoding the strings into the Enum. I do not expect that enum to change a lot, and if it falls through, there is just no name exposed to the user.
Signed-off-by: davidgraeff <[email protected]>
Signed-off-by: davidgraeff <[email protected]> Signed-off-by: Pshatsillo <[email protected]>
Signed-off-by: davidgraeff <[email protected]> Signed-off-by: Maximilian Hess <[email protected]>
Signed-off-by: davidgraeff [email protected]