Skip to content

Commit

Permalink
Merge pull request #65 from unpoller/fix-pdu
Browse files Browse the repository at this point in the history
fixes marshal types for pdu
  • Loading branch information
platinummonkey authored Dec 23, 2022
2 parents c256c61 + 68f8bce commit 248b797
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions pdu.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ type PDU struct {
BoardRev FlexInt `json:"board_rev"`
Bytes FlexInt `json:"bytes"`
CfgVersion string `json:"cfgversion"`
ConfigNetwork ConfigNetwork `json:"config_network"`
ConfigNetwork *ConfigNetwork `json:"config_network"`
ConnectRequestIP string `json:"connect_request_ip"`
ConnectRequestPort FlexInt `json:"connect_request_port"`
ConnectedAt FlexInt `json:"connected_at"`
Expand All @@ -24,8 +24,8 @@ type PDU struct {
DiscoveredVia string `json:"discovered_via"`
DisplayableVersion string `json:"displayable_version"`
Dot1xPortCtrlEnabled FlexBool `json:"dot1x_portctrl_enabled"`
DownlinkTable DownlinkTable `json:"downlink_table"`
EthernetTable EthernetTable `json:"ethernet_table"`
DownlinkTable []*DownlinkTable `json:"downlink_table"`
EthernetTable []*EthernetTable `json:"ethernet_table"`
FlowctrlEnabled FlexBool `json:"flowctrl_enabled"`
FwCaps FlexInt `json:"fw_caps"`
GatewayMac string `json:"gateway_mac"`
Expand Down Expand Up @@ -87,7 +87,7 @@ type PDU struct {
State FlexInt `json:"state"`
StpPriority FlexInt `json:"stp_priority"`
StpVersion string `json:"stp_version"`
SwitchCaps SwitchCaps `json:"switch_caps"`
SwitchCaps *SwitchCaps `json:"switch_caps"`
SysErrorCaps FlexInt `json:"sys_error_caps"`
SysStats SysStats `json:"sys_stats"`
SyslogKey string `json:"syslog_key"`
Expand Down

0 comments on commit 248b797

Please sign in to comment.