This commit is contained in:
David Newhall II 2019-07-04 04:05:25 -07:00
parent 7cde4b0c26
commit d96d4dc941
2 changed files with 2 additions and 2 deletions

View File

@ -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,

View File

@ -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"`