From 232b80583a9a47f24ec5702e32f30a02ced0373d Mon Sep 17 00:00:00 2001 From: Kalle Carlbark Date: Mon, 14 Feb 2022 13:33:39 +0100 Subject: [PATCH] Occupied is a bool, not string --- interfaces.go | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/interfaces.go b/interfaces.go index 3786f02..629cadc 100644 --- a/interfaces.go +++ b/interfaces.go @@ -152,18 +152,18 @@ type Interface struct { Vid int `json:"vid"` } `json:"untagged_vlan"` LAG struct { - Occupied string `json:"_occupied"` - URL string `json:"url"` - Display string `json:"display"` - Name string `json:"name"` - Device struct { + URL string `json:"url"` + Display string `json:"display"` + Name string `json:"name"` + Device struct { URL string `json:"url"` Display string `json:"display"` Name string `json:"name"` ID int `json:"id"` } `json:"device"` - Cable int `json:"cable"` - ID int `json:"id"` + ID int `json:"id"` + Cable int `json:"cable"` + Occupied bool `json:"_occupied"` } `json:"lag"` Bridge struct { Occupied string `json:"_occupied"`