Fix tags to support newer api.

This commit is contained in:
Kalle Carlbark 2021-01-20 16:13:53 +01:00
parent e8bdaa8429
commit 7bea2b439f
No known key found for this signature in database
GPG key ID: 5E4BAB01A57CDD62

View file

@ -81,9 +81,15 @@ type IpamPrefixesList struct {
PrefixCount int `json:"prefix_count"`
VLANCount int `json:"vlan_count"`
} `json:"role"`
IsPool bool `json:"is_pool"`
Description string `json:"description"`
Tags []string `json:"tags"`
IsPool bool `json:"is_pool"`
Description string `json:"description"`
Tags []struct {
ID int `json:"id"`
URL string `json:"url"`
Name string `json:"name"`
Slug string `json:"slug"`
Color string `json:"color"`
} `json:"tags"`
CustomFields struct {
} `json:"custom_fields"`
Created string `json:"created"`