fix #17 too.
This commit is contained in:
parent
7cde4b0c26
commit
d96d4dc941
|
|
@ -198,7 +198,7 @@ func (u USG) Points() ([]*influx.Point, error) {
|
||||||
"tx_bytes": p.TxBytes.Val,
|
"tx_bytes": p.TxBytes.Val,
|
||||||
"tx_packets": p.TxPackets,
|
"tx_packets": p.TxPackets,
|
||||||
"up": p.Up.Txt,
|
"up": p.Up.Txt,
|
||||||
"vlan": p.Vlan,
|
"vlan": p.Vlan.Val,
|
||||||
"dhcpd_ntp_1": p.DhcpdNtp1,
|
"dhcpd_ntp_1": p.DhcpdNtp1,
|
||||||
"dhcpd_unifi_controller": p.DhcpdUnifiController,
|
"dhcpd_unifi_controller": p.DhcpdUnifiController,
|
||||||
"ipv6_interface_type": p.Ipv6InterfaceType,
|
"ipv6_interface_type": p.Ipv6InterfaceType,
|
||||||
|
|
|
||||||
|
|
@ -72,7 +72,7 @@ type USG struct {
|
||||||
TxBytes FlexInt `json:"tx_bytes"`
|
TxBytes FlexInt `json:"tx_bytes"`
|
||||||
TxPackets float64 `json:"tx_packets"`
|
TxPackets float64 `json:"tx_packets"`
|
||||||
Up FlexBool `json:"up"`
|
Up FlexBool `json:"up"`
|
||||||
Vlan string `json:"vlan,omitempty"`
|
Vlan FlexInt `json:"vlan,omitempty"`
|
||||||
VlanEnabled FlexBool `json:"vlan_enabled"`
|
VlanEnabled FlexBool `json:"vlan_enabled"`
|
||||||
DhcpRelayEnabled FlexBool `json:"dhcp_relay_enabled,omitempty"`
|
DhcpRelayEnabled FlexBool `json:"dhcp_relay_enabled,omitempty"`
|
||||||
DhcpdGatewayEnabled FlexBool `json:"dhcpd_gateway_enabled,omitempty"`
|
DhcpdGatewayEnabled FlexBool `json:"dhcpd_gateway_enabled,omitempty"`
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue