From 7bea2b439fe434c8e154082ceab0a6c90a8517b4 Mon Sep 17 00:00:00 2001 From: Kalle Carlbark Date: Wed, 20 Jan 2021 16:13:53 +0100 Subject: [PATCH] Fix tags to support newer api. --- netbox_prefixes.go | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/netbox_prefixes.go b/netbox_prefixes.go index a25b021..1549a43 100644 --- a/netbox_prefixes.go +++ b/netbox_prefixes.go @@ -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"`