Skip to content

Commit

Permalink
Merge pull request #9 from EugenioSiciliano/network-ports-fix
Browse files Browse the repository at this point in the history
Fixed NIC model to support network ports
  • Loading branch information
joelrebel authored Feb 20, 2023
2 parents 85a9c47 + b69058d commit 93ff001
Showing 1 changed file with 17 additions and 6 deletions.
23 changes: 17 additions & 6 deletions device.go
Original file line number Diff line number Diff line change
Expand Up @@ -167,12 +167,23 @@ type Memory struct {
type NIC struct {
Common

ID string `json:"id,omitempty"`
Description string `json:"description,omitempty"`
SpeedBits int64 `json:"speed_bits,omitempty"`
PhysicalID string `json:"physid,omitempty"`
BusInfo string `json:"bus_info,omitempty"`
MacAddress string `json:"macaddress,omitempty"`
ID string `json:"id,omitempty"`
NICPorts []*NICPort `json:"nic_ports,omitempty"`
}

// NICPort component
type NICPort struct {
Common

ID string `json:"id"`
SpeedBits int64 `json:"speed_bits,omitempty"`
PhysicalID string `json:"physid,omitempty"`
BusInfo string `json:"bus_info,omitempty"`
ActiveLinkTechnology string `json:"active_link_technology,omitempty"`
MacAddress string `json:"macaddress,omitempty"`
LinkStatus string `json:"link_status,omitempty"`
AutoNeg bool `json:"auto_neg,omitempty"`
MTUSize int `json:"mtu_size,omitempty"`
}

// StorageController component
Expand Down

0 comments on commit 93ff001

Please sign in to comment.