Skip to content
This repository has been archived by the owner on Mar 6, 2024. It is now read-only.

Update MAC address of VM via the update_nic() method #791

Open
Raxy45 opened this issue Feb 28, 2022 · 0 comments
Open

Update MAC address of VM via the update_nic() method #791

Raxy45 opened this issue Feb 28, 2022 · 0 comments

Comments

@Raxy45
Copy link

Raxy45 commented Feb 28, 2022

Is your feature request related to a problem? Please describe.

I'm trying to update the mac address of VM set up, currently using the update_nic() method, I'm able to update almost all the nic properties but not able to change the mac address to RESET via the method.

Describe the solution you'd like

An argument accepted in update_nic() method which lets you reset the mac address would be great!

Describe alternatives you've considered

I tried to change the mac address as it is done in code of update_nic() method like this

vm_resource=self.get_vm(vapp_name) vm_network_resource = vm_resource.NetworkConnectionSection

and then updating the network resource and pushing it to vcd via the put_linked_resource method like this:
self.client.put_linked_resource(vm_network_resource, RelationType.EDIT, ENTITYTYPE.NETWORK_CONNECTION_SECTION.value, vm_network_resource)

but here at the first place in vm_network_resource the vm_resource.NetworkConnectionSection is set to None vm_resource!

Additional context

No response

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant