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"`
|
||||||
|
@ -96,7 +96,7 @@ type PrefixFilter struct {
|
||||||
Offset int64 `schema:"offset,omitempty"`
|
Offset int64 `schema:"offset,omitempty"`
|
||||||
Limit int64 `schema:"limit,omitempty"`
|
Limit int64 `schema:"limit,omitempty"`
|
||||||
|
|
||||||
//User specific filters
|
// User specific filters
|
||||||
Family string `schema:"family,omitempty"`
|
Family string `schema:"family,omitempty"`
|
||||||
IsPool string `schema:"is_pool,omitempty"`
|
IsPool string `schema:"is_pool,omitempty"`
|
||||||
EnforceUnique string `schema:"enforce_unique,omitempty"`
|
EnforceUnique string `schema:"enforce_unique,omitempty"`
|
||||||
|
@ -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