Skip to content

Commit

Permalink
Getting ahead of myself. Removing WakeOnLAN fields until implemented.
Browse files Browse the repository at this point in the history
Signed-off-by: Jacob Young <jacoby@nvidia.com>
  • Loading branch information
Jacob Young committed May 11, 2023
1 parent fc6625a commit 413cc04
Showing 1 changed file with 12 additions and 14 deletions.
26 changes: 12 additions & 14 deletions pkg/net/net.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,20 +21,18 @@ type NICCapability struct {
}

type NIC struct {
Name string `json:"name"`
MacAddress string `json:"mac_address"`
IsVirtual bool `json:"is_virtual"`
Capabilities []*NICCapability `json:"capabilities"`
PCIAddress *string `json:"pci_address,omitempty"`
Speed string `json:"speed"`
Duplex string `json:"duplex"`
SupportedLinkModes []string `json:"supported_link_modes,omitempty"`
SupportedPorts []string `json:"supported_ports,omitempty"`
SupportedFECModes []string `json:"supported_fec_modes,omitempty"`
AdvertisedLinkModes []string `json:"advertised_link_modes,omitempty"`
AdvertisedFECModes []string `json:"advertised_fec_modes,omitempty"`
SupportedWakeOnModes []string `json:"supported_wake_on_modes,omitempty"`
AdvertisedWakeOnModes []string `json:"advertised_wake_on_modes,omitempty"`
Name string `json:"name"`
MacAddress string `json:"mac_address"`
IsVirtual bool `json:"is_virtual"`
Capabilities []*NICCapability `json:"capabilities"`
PCIAddress *string `json:"pci_address,omitempty"`
Speed string `json:"speed"`
Duplex string `json:"duplex"`
SupportedLinkModes []string `json:"supported_link_modes,omitempty"`
SupportedPorts []string `json:"supported_ports,omitempty"`
SupportedFECModes []string `json:"supported_fec_modes,omitempty"`
AdvertisedLinkModes []string `json:"advertised_link_modes,omitempty"`
AdvertisedFECModes []string `json:"advertised_fec_modes,omitempty"`
// TODO(fromani): add other hw addresses (USB) when we support them
}

Expand Down

0 comments on commit 413cc04

Please sign in to comment.