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