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"`
|
VcPriority int `json:"vc_priority"`
|
||||||
Comments string `json:"comments"`
|
Comments string `json:"comments"`
|
||||||
// LocalContextData string `json:"local_context_data"`
|
// 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 {
|
CustomFields struct {
|
||||||
DcimDeviceBelongsToService struct {
|
DcimDeviceBelongsToService struct {
|
||||||
Value int `json:"value"`
|
Value int `json:"value"`
|
||||||
|
@ -183,17 +189,21 @@ type DcimCreateDevice struct {
|
||||||
ParentDevice struct {
|
ParentDevice struct {
|
||||||
Name string `json:"name,omitempty"`
|
Name string `json:"name,omitempty"`
|
||||||
} `json:"parent_device,omitempty"`
|
} `json:"parent_device,omitempty"`
|
||||||
Status string `json:"status,omitempty"`
|
Status string `json:"status,omitempty"`
|
||||||
PrimaryIP4 int `json:"primary_ip4,omitempty"`
|
PrimaryIP4 int `json:"primary_ip4,omitempty"`
|
||||||
PrimaryIP6 int `json:"primary_ip6,omitempty"`
|
PrimaryIP6 int `json:"primary_ip6,omitempty"`
|
||||||
Cluster int `json:"cluster,omitempty"`
|
Cluster int `json:"cluster,omitempty"`
|
||||||
VirtualChassis int `json:"virtual_chassis,omitempty"`
|
VirtualChassis int `json:"virtual_chassis,omitempty"`
|
||||||
VcPosition int `json:"vc_position,omitempty"`
|
VcPosition int `json:"vc_position,omitempty"`
|
||||||
VcPriority int `json:"vc_priority,omitempty"`
|
VcPriority int `json:"vc_priority,omitempty"`
|
||||||
Comments string `json:"comments,omitempty"`
|
Comments string `json:"comments,omitempty"`
|
||||||
LocalContextData string `json:"local_context_data,omitempty"`
|
LocalContextData string `json:"local_context_data,omitempty"`
|
||||||
Tags []string `json:"tags,omitempty"`
|
Tags []struct {
|
||||||
CustomFields struct {
|
Name string `json:"name"`
|
||||||
|
Slug string `json:"slug"`
|
||||||
|
Color string `json:"color"`
|
||||||
|
} `json:"tags"`
|
||||||
|
CustomFields struct {
|
||||||
DcimDeviceBelongsToService struct {
|
DcimDeviceBelongsToService struct {
|
||||||
Value int `json:"value,omitempty"`
|
Value int `json:"value,omitempty"`
|
||||||
Label string `json:"label,omitempty"`
|
Label string `json:"label,omitempty"`
|
||||||
|
|
Loading…
Reference in a new issue