Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[_sonic_yang_ext.py]: Extend sonic yang class to support cropping, tr…
…ansalation, reverse translation of … (sonic-net#11) * [_sonic_yang_ext.py]: Extend sonic yang class to support cropping of config. From the json format of yang models, a map is created from config DB tables to container in yang model. Input Config is cropped on based of this map. * [test_sonic_yang.py]: Test code for sonic yang extension funtionalities. Test code for copping config DB. Minor fixes in other files. * [_sonic_yang_ext.py]: Translate Config DB format to YANG json as per yang model. Load data in sonic_yang after transalation. Test for translation functionality. * [test_sonic_yang.py]: Add test for translation. Added config DB json sample in yangTest.json. Blocked other PLY test cases as of now, because they fail with new yang models. * [_sonic_yang_ext.py]: Reverse translation i.e. from YANG json to Config DB json. Reverse translation i.e. from YANG json to Config DB json based on yang models. Find xpath for a port. portleaf and a yang list. get_data functions to get rev xlated data from data tree. Test for crop, xlate and rev xlate. * [_sonic_yang_ext.py]: Minor changes to handle exceptions. * [build_debian.sh]: Add neccessary package in sonic image and in sonic slave docker. Fix the test to accomodate for ip-prefix as of now * [_sonic_yang_ext.py]: Addressing more exception handling and comments. Unblocking PLY test cases. * [setup.py]: Add _sonic_yang_ext.py in package. * [test_sonic_yang.py]: Fixing test case for delete node.
- Loading branch information