diff --git a/core/unifi/usg_influx.go b/core/unifi/usg_influx.go index 6bd273d0..bb357736 100644 --- a/core/unifi/usg_influx.go +++ b/core/unifi/usg_influx.go @@ -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, diff --git a/core/unifi/usg_type.go b/core/unifi/usg_type.go index 2c4d769e..be751f1d 100644 --- a/core/unifi/usg_type.go +++ b/core/unifi/usg_type.go @@ -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"`