Skip to content

Conversation

jak3kaj
Copy link
Contributor

@jak3kaj jak3kaj commented May 4, 2023

Added the following to the NIC struct:

  • Speed
  • Duplex
  • SupportedLinkModes
  • SupportedPorts
  • SupportedFECModes
  • AdvertisedLinkModes
  • AdvertisedFECModes

Refactoring PR #335

Copy link
Owner

@jaypipes jaypipes left a comment

Choose a reason for hiding this comment

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

Fantastic work on this @jak3kaj, really appreciate your effort! :)

Copy link
Owner

@jaypipes jaypipes left a comment

Choose a reason for hiding this comment

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

@jak3kaj how's it going? I wanted to know if you think you can fix up this PR today? I was looking to cut a new release of ghw today and wanted to get this excellent work into the release :)

I think the only thing you need to do is rebase and remove the now-uncalled functions.

Jacob Young and others added 7 commits May 10, 2023 22:21
SupportedFECModes, AdvertisedLinkModes, AdvertisedFECModes to NIC
struct.
Update test case to validate new fields.
Update README.

Signed-off-by: Jacob Young <jacoby@nvidia.com>
Update ParseBool to return `false` for empty strings.

Signed-off-by: Jacob Young <jacoby@nvidia.com>
Signed-off-by: Jacob Young <jacoby@nvidia.com>
Co-authored-by: Jay Pipes <jaypipes@gmail.com>
Signed-off-by: Jacob Young <jacoby@nvidia.com>
Co-authored-by: Jay Pipes <jaypipes@gmail.com>
Signed-off-by: Jacob Young <jacoby@nvidia.com>
Signed-off-by: Jacob Young <jacoby@nvidia.com>
Signed-off-by: Jacob Young <jacoby@nvidia.com>
Signed-off-by: Jacob Young <jacoby@nvidia.com>
Copy link
Owner

@jaypipes jaypipes left a comment

Choose a reason for hiding this comment

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

I'm good with this, thank you @jak3kaj! Could probably place that readFile helper method into the util pkg long-term but I won't hold this up for that request.

@ffromani if you are good with this after review, please feel free to merge.

@ffromani
Copy link
Collaborator

I'm good with this, thank you @jak3kaj! Could probably place that readFile helper method into the util pkg long-term but I won't hold this up for that request.

@ffromani if you are good with this after review, please feel free to merge.

Looking at this ASAP

@jak3kaj
Copy link
Contributor Author

jak3kaj commented May 11, 2023

I'm good with this, thank you @jak3kaj! Could probably place that readFile helper method into the util pkg long-term but I won't hold this up for that request.

@ffromani if you are good with this after review, please feel free to merge.

I'm working on the 3rd PR to add support for the WOL data. I can move readFile to utils there as well. I got busy with something else, so this will be in a week or so.

Copy link
Collaborator

@ffromani ffromani left a comment

Choose a reason for hiding this comment

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

(VERY LATE to the party but...) LGTM, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants