response = collection.add(entity) where collection is templates nics and entity=new nic Got exception: File "/usr/lib/python2.6/site-packages/ovirtsdk/infrastructure/common.py", line 28, in __getattr__ return self.__getattribute__(item) AttributeError: 'TemplateNics' object has no attribute 'add'
merged, commit 5b89e03de3fb9a5e0f9a8828c68b40efc9d2526e
si13, rhevm-sdk-3.1.0.5-1.el6ev.noarch: same error as before: response = collection.add(entity) File "/usr/lib/python2.6/site-packages/ovirtsdk/infrastructure/common.py", line 28, in __getattr__ return self.__getattribute__(item) AttributeError: 'TemplateNics' object has no attribute 'add'
ori?
This signature for add template-nic was added to yaml file in commit: 5b89e03de3fb9a5e0f9a8828c68b40efc9d2526e about three weeks ago: +- name: /api/templates/{template:id}/nics|rel=add + request: + body: + parameterType: NIC + signatures: + - mandatoryArguments: {nic.network.id|name: 'xs:string', nic.name: 'xs:string'} + optionalArguments: {nic.mac.address: 'xs:string', nic.interface: 'xs:string', nic.port_mirroring.networks.network--COLLECTION: {network.id: 'xs:string'}} + urlparams: {} + headers: {Content-Type: application/xml|json, Expect: 201-created} If sdk was generated since then it should be in
Another issue is causing the problem, being fixed in the context of another bug by Michael Kolesnik; patch will be sent shortly by him
mike - duplicate of bug 846950?
(In reply to comment #8) > mike - duplicate of bug 846950? Yes, therefore I am closing as duplicate (as the other bug is already in proccess of being merged into the product). *** This bug has been marked as a duplicate of bug 846950 ***