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_packets": p.TxPackets,
|
||||
"up": p.Up.Txt,
|
||||
"vlan": p.Vlan,
|
||||
"vlan": p.Vlan.Val,
|
||||
"dhcpd_ntp_1": p.DhcpdNtp1,
|
||||
"dhcpd_unifi_controller": p.DhcpdUnifiController,
|
||||
"ipv6_interface_type": p.Ipv6InterfaceType,
|
||||
|
|
|
|||
|
|
@ -72,7 +72,7 @@ type USG struct {
|
|||
TxBytes FlexInt `json:"tx_bytes"`
|
||||
TxPackets float64 `json:"tx_packets"`
|
||||
Up FlexBool `json:"up"`
|
||||
Vlan string `json:"vlan,omitempty"`
|
||||
Vlan FlexInt `json:"vlan,omitempty"`
|
||||
VlanEnabled FlexBool `json:"vlan_enabled"`
|
||||
DhcpRelayEnabled FlexBool `json:"dhcp_relay_enabled,omitempty"`
|
||||
DhcpdGatewayEnabled FlexBool `json:"dhcpd_gateway_enabled,omitempty"`
|
||||
|
|
|
|||
Loading…
Reference in New Issue