Yang parser for bit protocols


Mahesh Govind
 

Thanks


On Sunday 7 February 2016, Robert Varga <nite@...> wrote:
On 2016-02-07 08:47, Mahesh Govind wrote:

Dear experts ,
Can we generate encoders and decoders using yang for bit orientated protocols .
Does openflow uses generated protocol encoders and decoders ?
[ I saw some yang statements with position:x in opneflow-protocol.yang file ]


Yes, there is no problem modeling any protocol in YANG. The use of explicit bit type is discouraged, though -- it is better to model each bit as a separate leaf.

Bye,
Robert