Break out ipam vlan to its own type
This commit is contained in:
parent
77e28e6f1e
commit
e8bdaa8429
1 changed files with 49 additions and 47 deletions
|
@ -30,12 +30,7 @@ type IpamVLANsCreate struct {
|
|||
} `json:"custom_fields"`
|
||||
}
|
||||
|
||||
// IpamVLANsList is used for the return value from NetBox API ipam_vlans_list
|
||||
type IpamVLANsList struct {
|
||||
Count int `json:"count"`
|
||||
Next string `json:"next"`
|
||||
Previous string `json:"previous"`
|
||||
Results []struct {
|
||||
type IpamVLAN struct {
|
||||
ID int `json:"id"`
|
||||
Site struct {
|
||||
ID int `json:"id"`
|
||||
|
@ -78,7 +73,14 @@ type IpamVLANsList struct {
|
|||
Created string `json:"created"`
|
||||
LastUpdated time.Time `json:"last_updated"`
|
||||
PrefixCount int `json:"prefix_count"`
|
||||
} `json:"results"`
|
||||
}
|
||||
|
||||
// IpamVLANsList is used for the return value from NetBox API ipam_vlans_list
|
||||
type IpamVLANsList struct {
|
||||
Count int `json:"count"`
|
||||
Next string `json:"next"`
|
||||
Previous string `json:"previous"`
|
||||
Results []IpamVLAN `json:"results"`
|
||||
}
|
||||
|
||||
type VLAN struct {
|
||||
|
|
Loading…
Reference in a new issue