Occupied is a bool, not string

This commit is contained in:
Kalle Carlbark 2022-02-14 13:33:39 +01:00
parent c8c7c4edfc
commit 232b80583a
No known key found for this signature in database

View file

@ -152,18 +152,18 @@ type Interface struct {
Vid int `json:"vid"` Vid int `json:"vid"`
} `json:"untagged_vlan"` } `json:"untagged_vlan"`
LAG struct { LAG struct {
Occupied string `json:"_occupied"` URL string `json:"url"`
URL string `json:"url"` Display string `json:"display"`
Display string `json:"display"` Name string `json:"name"`
Name string `json:"name"` Device struct {
Device struct {
URL string `json:"url"` URL string `json:"url"`
Display string `json:"display"` Display string `json:"display"`
Name string `json:"name"` Name string `json:"name"`
ID int `json:"id"` ID int `json:"id"`
} `json:"device"` } `json:"device"`
Cable int `json:"cable"` ID int `json:"id"`
ID int `json:"id"` Cable int `json:"cable"`
Occupied bool `json:"_occupied"`
} `json:"lag"` } `json:"lag"`
Bridge struct { Bridge struct {
Occupied string `json:"_occupied"` Occupied string `json:"_occupied"`