Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[_sonic_yang_ext.py]: Extend sonic yang class to support cropping, transalation, reverse translation of Config DB. #3891

Closed

Commits on Dec 11, 2019

  1. [sonic-yang-mgmt]: Basic build infra for sonic-yang-mgmt package.

    This Package will contain YANG models for sonic which are written with guidelines mentioned in
    https://github.com/Azure/SONiC/blob/master/doc/mgmt/SONiC_YANG_Model_Guidelines.md.
    
    This package will include python yang libraries which will be used with sonic utilities
    pacakge to validate the config.
    Praveen Chaudhary authored and li-pingmao committed Dec 11, 2019
    Configuration menu
    Copy the full SHA
    4b124d9 View commit details
    Browse the repository at this point in the history
  2. libyang Python APIs:

          - python APIs based on libyang
          - functions to load/merge yang models and data files
          - add/set/delete node in schema and data trees
          - find dependencies
    li-pingmao committed Dec 11, 2019
    Configuration menu
    Copy the full SHA
    8be3441 View commit details
    Browse the repository at this point in the history

Commits on Dec 12, 2019

  1. [yang-models]: First version of yang models for Port, VLan, Interface…

    …, PortChannel and ACL.
    
    [Sonic Yang Tree]: YANG models as per Guidelines.
    
    Guideline doc: https://github.com/Azure/SONiC/blob/master/doc/mgmt/SONiC_YANG_Model_Guidelines.md
    
    [yang-model-tests]: YANG model test code and JSON input for testing.
    
    [setup.py]: Add testing for yang models.
    
    [sonic-slave-stretch]: Add a package ijson for sonic_yang_mgmt build.
    Praveen Chaudhary committed Dec 12, 2019
    Configuration menu
    Copy the full SHA
    fa42047 View commit details
    Browse the repository at this point in the history
  2. [_sonic_yang_ext.py]: Extend sonic yang class to support cropping, tr…

    …ansalation, reverse translation of config DB.
    
    This PR includes:
    -- Cropping input config based on Yang Model.
    -- Translate input config based on Yang Model.
    -- rev Translate input config based on Yang Model.
    -- Find xpath of port, portleaf and a yang list.
    -- Find if node is key of a list while deletion if yes, then delete the parent.
    Praveen Chaudhary committed Dec 12, 2019
    Configuration menu
    Copy the full SHA
    54142c3 View commit details
    Browse the repository at this point in the history