Closed smutel closed 1 year ago
Hello,
When using this piece of code:
description := "Interface de test" name := "default" enabled := false taggedvlans := [] newResource := &models.WritableVMInterface{ Description: description, Enabled: enabled, Name: &name, TaggedVlans: taggedVlans, VirtualMachine: 8, } resource := virtualization.NewVirtualizationInterfacesCreateParams().WithData(newResource) resourceCreated, err := client.Virtualization.VirtualizationInterfacesCreate(resource, nil)
The JSON sent to Netbox is the following:
{"description":"Interface de test","name":"default","tagged_vlans":[],"virtual_machine":8}
We can see that the parameter enabled is not sent to Netbox.
enabled
Regards.
Closing in favor of #107.
Hello,
When using this piece of code:
The JSON sent to Netbox is the following:
We can see that the parameter
enabled
is not sent to Netbox.Regards.