Merge pull request #49 from unifi-poller/dn2_spf
Add SFP data to a Port.
This commit is contained in:
commit
98e070a338
|
|
@ -131,10 +131,7 @@ type Port struct {
|
|||
PoeMode string `json:"poe_mode,omitempty"`
|
||||
PoePower FlexInt `json:"poe_power,omitempty"`
|
||||
PoeVoltage FlexInt `json:"poe_voltage,omitempty"`
|
||||
PortDelta struct {
|
||||
TimeDelta int64 `json:"time_delta"`
|
||||
TimeDeltaActivity int64 `json:"time_delta_activity"`
|
||||
} `json:"port_delta,omitempty"`
|
||||
PortDelta PortDelta `json:"port_delta,omitempty"`
|
||||
PortIdx FlexInt `json:"port_idx"`
|
||||
PortPoe FlexBool `json:"port_poe"`
|
||||
PortconfID string `json:"portconf_id"`
|
||||
|
|
@ -147,7 +144,20 @@ type Port struct {
|
|||
RxPackets FlexInt `json:"rx_packets"`
|
||||
RxRate FlexInt `json:"rx_rate,omitempty"`
|
||||
Satisfaction FlexInt `json:"satisfaction,omitempty"`
|
||||
SfpFound FlexBool `json:"sfp_found,omitempty"`
|
||||
SatisfactionReason FlexInt `json:"satisfaction_reason"`
|
||||
SFPCompliance string `json:"sfp_compliance"`
|
||||
SFPCurrent FlexInt `json:"sfp_current"`
|
||||
SFPFound FlexBool `json:"sfp_found"`
|
||||
SFPPart string `json:"sfp_part"`
|
||||
SFPRev string `json:"sfp_rev"`
|
||||
SFPRxfault FlexBool `json:"sfp_rxfault"`
|
||||
SFPRxpower FlexInt `json:"sfp_rxpower"`
|
||||
SFPSerial string `json:"sfp_serial"`
|
||||
SFPTemperature FlexInt `json:"sfp_temperature"`
|
||||
SFPTxfault FlexBool `json:"sfp_txfault"`
|
||||
SFPTxpower FlexInt `json:"sfp_txpower"`
|
||||
SFPVendor string `json:"sfp_vendor"`
|
||||
SFPVoltage FlexInt `json:"sfp_voltage"`
|
||||
Speed FlexInt `json:"speed"`
|
||||
SpeedCaps FlexInt `json:"speed_caps"`
|
||||
StpPathcost FlexInt `json:"stp_pathcost"`
|
||||
|
|
@ -164,6 +174,12 @@ type Port struct {
|
|||
Up FlexBool `json:"up"`
|
||||
}
|
||||
|
||||
// PortDelta is part of a Port.
|
||||
type PortDelta struct {
|
||||
TimeDelta FlexInt `json:"time_delta"`
|
||||
TimeDeltaActivity FlexInt `json:"time_delta_activity"`
|
||||
}
|
||||
|
||||
// USWStat holds the "stat" data for a switch.
|
||||
// This is split out because of a JSON data format change from 5.10 to 5.11.
|
||||
type USWStat struct {
|
||||
|
|
|
|||
Loading…
Reference in New Issue