ygot icon indicating copy to clipboard operation
ygot copied to clipboard

Generate leaf setters

Open kjahed opened this issue 3 years ago • 2 comments

This PR adds the '-generate_leaf_setters' flag which enables the generation of leaf setters (SetXXX). The generated methods assign their parameter (or its address) to the corresponding fields depending on the fields' data type.

kjahed avatar Jul 20 '22 15:07 kjahed

Coverage Status

Coverage decreased (-0.01%) to 90.462% when pulling 223921e7bdc76834832f16ec63b0397a506a62af on kjahed:generate_leaf_setters into 828caf02f07613fcc0a2cab1064ea46144ab5139 on openconfig:master.

coveralls avatar Jul 20 '22 16:07 coveralls

Thanks @wenovus - this LGTM. Comments are minor here, but please accept the suggestions just for code style reasons :-)

robshakir avatar Jul 25 '22 13:07 robshakir