Update to work with netbox > 2.9.0
This commit is contained in:
parent
adfcea80d0
commit
796f1647ee
1 changed files with 22 additions and 12 deletions
|
@ -130,7 +130,13 @@ type DcimDevicesList struct {
|
|||
VcPriority int `json:"vc_priority"`
|
||||
Comments string `json:"comments"`
|
||||
// LocalContextData string `json:"local_context_data"`
|
||||
Tags []string `json:"tags"`
|
||||
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 {
|
||||
DcimDeviceBelongsToService struct {
|
||||
Value int `json:"value"`
|
||||
|
@ -183,17 +189,21 @@ type DcimCreateDevice struct {
|
|||
ParentDevice struct {
|
||||
Name string `json:"name,omitempty"`
|
||||
} `json:"parent_device,omitempty"`
|
||||
Status string `json:"status,omitempty"`
|
||||
PrimaryIP4 int `json:"primary_ip4,omitempty"`
|
||||
PrimaryIP6 int `json:"primary_ip6,omitempty"`
|
||||
Cluster int `json:"cluster,omitempty"`
|
||||
VirtualChassis int `json:"virtual_chassis,omitempty"`
|
||||
VcPosition int `json:"vc_position,omitempty"`
|
||||
VcPriority int `json:"vc_priority,omitempty"`
|
||||
Comments string `json:"comments,omitempty"`
|
||||
LocalContextData string `json:"local_context_data,omitempty"`
|
||||
Tags []string `json:"tags,omitempty"`
|
||||
CustomFields struct {
|
||||
Status string `json:"status,omitempty"`
|
||||
PrimaryIP4 int `json:"primary_ip4,omitempty"`
|
||||
PrimaryIP6 int `json:"primary_ip6,omitempty"`
|
||||
Cluster int `json:"cluster,omitempty"`
|
||||
VirtualChassis int `json:"virtual_chassis,omitempty"`
|
||||
VcPosition int `json:"vc_position,omitempty"`
|
||||
VcPriority int `json:"vc_priority,omitempty"`
|
||||
Comments string `json:"comments,omitempty"`
|
||||
LocalContextData string `json:"local_context_data,omitempty"`
|
||||
Tags []struct {
|
||||
Name string `json:"name"`
|
||||
Slug string `json:"slug"`
|
||||
Color string `json:"color"`
|
||||
} `json:"tags"`
|
||||
CustomFields struct {
|
||||
DcimDeviceBelongsToService struct {
|
||||
Value int `json:"value,omitempty"`
|
||||
Label string `json:"label,omitempty"`
|
||||
|
|
Loading…
Reference in a new issue