Occupied is a bool, not string
This commit is contained in:
parent
c8c7c4edfc
commit
232b80583a
1 changed files with 7 additions and 7 deletions
|
@ -152,7 +152,6 @@ 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"`
|
||||||
|
@ -162,8 +161,9 @@ type Interface struct {
|
||||||
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"`
|
||||||
|
|
Loading…
Reference in a new issue