CiscoDevNet / ydk-gen

Generate model-driven APIs from YANG models
http://ciscodevnet.github.io/ydk-gen/
Apache License 2.0
137 stars 74 forks source link

Segmentation fault with Platform model for Crud Service Create operation - YDK-0.6.0 #527

Closed Prasadmanvish closed 7 years ago

Prasadmanvish commented 7 years ago

Setup Details: Router: XRV9k YDK Version : 0.6.0 Python Version : 2.7

Configured nodes for Platform:

component.name = "optical_channel" component.optical_channel.config.frequency = 1000 component.optical_channel.config.line_port = "optlineone" component.optical_channel.config.operational_mode = 100

The same operation is working on YDK-0.5.5. Find the successful logs attached for YDK-0.5.5

ghost commented 7 years ago

This issue is caused because a deviation (cisco-ios-xr-openconfig-platform-deviations.yang) is active on the device. It acts upon an augmented node. Because of this, the augmented child pointer coming from libyang is NULL. Just needed to check for this case