Hi Seba,
we are trying to change network label from DVS (N1K) to Standard Switch. Our code did not work, Do you have any idea?
>>> _this.set_attribute_type(vm_object._mor.get_attribute_type())
>>> request.set_element__this(_this)
>>> spec = request.new_spec()
>>> dev_change = spec.new_deviceChange()
>>> dev_change.set_element_device(dev._obj)
>>> dev_change.set_element_operation("edit")
>>> devs_changed = []
>>> devs_changed.append(dev_change)
>>> spec.set_element_deviceChange(devs_changed)
>>> request.set_element_spec(spec)
>>> ret = s._proxy.ReconfigVM_Task(request)._returnval
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "pysphere/resources/VimService_services.py", line 2784, in ReconfigVM_Task
response = self.binding.Receive(ReconfigVM_TaskResponseMsg.typecode)
File "pysphere/ZSI/client.py", line 545, in Receive
return _Binding.Receive(self, replytype, **kw)
File "pysphere/ZSI/client.py", line 464, in Receive
raise FaultException(msg)
pysphere.ZSI.FaultException: The session is not authenticated.
<pysphere.resources.VimService_services_types.NotAuthenticatedFault_Dec_Holder object at 0x2b86babed450>