Fix prefixes as well
This commit is contained in:
parent
550adeb746
commit
77e28e6f1e
1 changed files with 3 additions and 3 deletions
|
@ -71,7 +71,7 @@ type IpamPrefixesList struct {
|
|||
} `json:"vlan"`
|
||||
Status struct {
|
||||
Label string `json:"label"`
|
||||
Value int `json:"value"`
|
||||
Value string `json:"value"`
|
||||
} `json:"status"`
|
||||
Role struct {
|
||||
ID int `json:"id"`
|
||||
|
@ -125,7 +125,7 @@ type PrefixFilter struct {
|
|||
|
||||
// ListPrefixes returns Netbox ipam_prefixes_list
|
||||
func (n *NetBox) ListPrefixes(i *IpamPrefixesList, f *PrefixFilter) error {
|
||||
var encoder = schema.NewEncoder()
|
||||
encoder := schema.NewEncoder()
|
||||
|
||||
form := url.Values{}
|
||||
err := encoder.Encode(f, form)
|
||||
|
|
Loading…
Reference in a new issue