Open ygorelik opened 5 years ago
When yang model contains typedef statement, which defines bits type, the generated bundle defines corresponding class, but its meta data is missing.
typedef Ydk-bits-type { description "this is bits type value"; type bits { bit disable-nagle { position 0; } bit auto-sense-speed { position 1; } } }
Check that generated file _ydktesttypes.py contains definition of corresponding class:
class YdkBitsType(FixedBitsDict): """ YdkBitsType this is bits type value Keys are:- auto\-sense\-speed , disable\-nagle """ def __init__(self): dictionary_ = { 'auto-sense-speed': False, 'disable-nagle': False, } pos_map_ = { 'auto-sense-speed': 1, 'disable-nagle': 0, } super().__init__(dictionary_, pos_map_)
YDK-0.5.5 and 0.8.3.
Applicable only to YDK-0.5.5 as 'bits' type is implemented in C++.
Current Behavior
When yang model contains typedef statement, which defines bits type, the generated bundle defines corresponding class, but its meta data is missing.
Steps to Reproduce
Check that generated file _ydktesttypes.py contains definition of corresponding class:
System Information
YDK-0.5.5 and 0.8.3.