azure-sdk-for-python icon indicating copy to clipboard operation
azure-sdk-for-python copied to clipboard

Enable accelerated networking on existing nic

Open bobkodex opened this issue 7 years ago • 9 comments

Hi there,

im currently struggling on enabling/disabling accelerated networking on an existing network interface of a deallocatet vm with the python SDK.

Via network_client.network_interfaces.create_or_update( .., ..., { ... 'enable_accelerated_networking': True} ) i'm of course able to create a new network interface with the desired setting. But create_or_update does not seem to let me update an existing nic as i'm getting the error

msrestazure.azure_exceptions.CloudError: Azure Error: IpConfigDeleteNotSupported Message: IP Configuration pub-nicn0013 cannot be deleted. Deletion and renaming of primary IP Configuration is not supported

I'm missing here a simple update function that is for example provided with the compute_client. There it is possible to update a single value, for example: compute_client.disks.update(resource_group_name, disk.name, {'disk_size_gb': 100})

Thanks in advance!

bobkodex avatar Jan 25 '19 15:01 bobkodex

@tjprescott would you know this scenarion? Thanks!

lmazuel avatar Jan 28 '19 20:01 lmazuel

Any update on this issue?

bobkodex avatar Mar 04 '19 12:03 bobkodex

@bobkodex hmm... this seems like a very old issue, so i am not sure if my comments can be useful.

the reason that there is no simple update() is that underlying REST API doesn't provide such function.

basically the best approach would probably be: disk = compute_client.disks.get(...) .... udpate whatever you need ... compute_client.disks.create_or_update(.... disk)

zikalino avatar Sep 13 '19 00:09 zikalino

@bobkodex, Thank you for bringing this to our attention - we're currently looking into this issue and will update soon.

allegradomel avatar Dec 05 '19 01:12 allegradomel

@KarenHammons can you transfer this to Datapath, since it's a NIC/Accelerated Networking issue?

allegradomel avatar Dec 11 '19 22:12 allegradomel

@Krishnan Rangachari or @Aanand Ramachandran – can you help with this GitHub question please?

KarenHammons avatar Dec 11 '19 22:12 KarenHammons

Adding AccelNet PM, @Laxmana Rao Battula

KarenHammons avatar Dec 11 '19 23:12 KarenHammons

Make sure to stop/deallocate the VM before enabling AN for the existing NIC. Refer the link - https://docs.microsoft.com/en-us/azure/virtual-network/create-vm-accelerated-networking-cli#enable-accelerated-networking-on-existing-vms for additional details.

laxmanrb avatar Dec 16 '19 17:12 laxmanrb

If there are no further issues, we can close this issue #please-close

allegradomel avatar Dec 20 '19 19:12 allegradomel