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"`
|
||||||
|
@ -192,7 +198,11 @@ type DcimCreateDevice struct {
|
||||||
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 {
|
||||||
|
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,omitempty"`
|
Value int `json:"value,omitempty"`
|
||||||
|
|
Loading…
Reference in a new issue