Bug 830511
| Summary: | RESTAPI: RSDL does not expose add for /api/templates/xxx/nics | ||
|---|---|---|---|
| Product: | Red Hat Enterprise Virtualization Manager | Reporter: | Elena <edolinin> |
| Component: | ovirt-engine-restapi | Assignee: | Ori Liel <oliel> |
| Status: | CLOSED DUPLICATE | QA Contact: | Elena <edolinin> |
| Severity: | high | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 3.1.0 | CC: | acathrow, dyasny, ecohen, iheim, mkolesni, mpastern, Rhev-m-bugs, srevivo, yeylon, ykaul |
| Target Milestone: | --- | Keywords: | Reopened |
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | infra | ||
| Fixed In Version: | si13 | Doc Type: | Bug Fix |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2012-08-14 05:43:46 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | Infra | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
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 *** |
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'