Autogeneration error in python API binding with multiple parents
Affects | Status | Importance | Assigned to | Milestone | ||
---|---|---|---|---|---|---|
Juniper Openstack | Status tracked in Trunk | |||||
Trunk |
Fix Committed
|
Undecided
|
Hampapur Ajay |
Bug Description
In the config schema files (vnc_cfg.xsd, alarm.xsd etc.) if there is a situation like below:
Obj-Type-A child of Obj-Type-1
Obj-Type-A child of Obj-Type-2
Obj-Type-B child of Obj-Type-A
Then generation of constructor of class ObjTypeB in resource_common.py encounters an error at getDefaultFQName() with traceback:
Traceback (most recent call last):
File "tools/
main()
File "tools/
pgenr.
File "tools/
self.
File "/root/
self.
File "/root/
apigen.
File "/root/
self.
File "/root/
parent_
File "/root/
raise Exception(
Exception: parent_type should be specified
scons: *** [build/
scons: building terminated because of errors.
Review in progress for https:/ /review. opencontrail. org/28240
Submitter: Hampapur Ajay (<email address hidden>)