Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enabled (true / false) does not work with vm interface #105

Closed
smutel opened this issue Oct 25, 2020 · 1 comment
Closed

Enabled (true / false) does not work with vm interface #105

smutel opened this issue Oct 25, 2020 · 1 comment

Comments

@smutel
Copy link
Contributor

smutel commented Oct 25, 2020

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.

Regards.

@v0ctor
Copy link
Collaborator

v0ctor commented Feb 25, 2023

Closing in favor of #107.

@v0ctor v0ctor closed this as completed Feb 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants