-
Bug
-
Resolution: Done
-
Medium
-
Jakarta Release
-
None
YANG allows the definition of a specific choice statement (s. https://www.rfc-editor.org/rfc/rfc7950#section-4.2.7).
Therfore it is possible to specifiy a choice- and a {{case- statement }}inside the yang-module. These statements appear only in the schema tree not in the data tree (s. rfc)
By retrieving such an element in CPS as a data-node, CPS also retrieves the case-statement, which is not correct and "valid" against the Yang-Modell.
Sample:
"compression": { "bitwidth": 9, "compression-type": "STATIC", "compression-format": { "exponent": 4 } }
As the element compression-format represents the case-statement, CPS should not return this element and just:
"compression": { "bitwidth": 9, "compression-type": "STATIC", "exponent": 4 }
s. ORAN-YANG-Module as reference: https://gerrit.o-ran-sc.org/r/gitweb?p=scp/oam/modeling.git;a=blob;f=data-model/yang/published/o-ran/ru-fh/o-ran-compression-factors@2020-08-10.yang;h=5816b5ed63e365e6c2e1483df40c9611343ee22a;hb=refs/changes/06/5706/3