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"`
|
} `json:"vlan"`
|
||||||
Status struct {
|
Status struct {
|
||||||
Label string `json:"label"`
|
Label string `json:"label"`
|
||||||
Value int `json:"value"`
|
Value string `json:"value"`
|
||||||
} `json:"status"`
|
} `json:"status"`
|
||||||
Role struct {
|
Role struct {
|
||||||
ID int `json:"id"`
|
ID int `json:"id"`
|
||||||
|
@ -125,7 +125,7 @@ type PrefixFilter struct {
|
||||||
|
|
||||||
// ListPrefixes returns Netbox ipam_prefixes_list
|
// ListPrefixes returns Netbox ipam_prefixes_list
|
||||||
func (n *NetBox) ListPrefixes(i *IpamPrefixesList, f *PrefixFilter) error {
|
func (n *NetBox) ListPrefixes(i *IpamPrefixesList, f *PrefixFilter) error {
|
||||||
var encoder = schema.NewEncoder()
|
encoder := schema.NewEncoder()
|
||||||
|
|
||||||
form := url.Values{}
|
form := url.Values{}
|
||||||
err := encoder.Encode(f, form)
|
err := encoder.Encode(f, form)
|
||||||
|
|
Loading…
Reference in a new issue