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 model support for COPP #7199

Merged
merged 9 commits into from
Jun 29, 2021
Merged

Commits on Jun 19, 2021

  1. SONiC Yang model support for COPP

    **- What I did**
    
    Created SONiC Yang model for COPP.
    Tables: COPP_GROUP, COPP_TRAP.
    
    **- How I did it**
    Defined Yang models for COPP based on Guideline doc:
    https://github.com/Azure/SONiC/blob/master/doc/mgmt/SONiC_YANG_Model_Guidelines.md
    and
    https://github.com/Azure/sonic-utilities/blob/master/doc/Command-Reference.md
    
    **- How to verify it**
    $ pytest tests/yang_model_tests/test_yang_model.py -v
    ============================================================================== test session starts ===============================================================================
    platform linux2 -- Python 2.7.13, pytest-3.0.6, py-1.4.32, pluggy-0.4.0 -- /usr/bin/python
    cachedir: .cache
    rootdir: /sonic/src/sonic-yang-models, inifile:
    plugins: cov-2.4.0
    collected 1 items
    
    tests/yang_model_tests/test_yang_model.py::Test_yang_models::test_run_tests PASSED
    
    ============================================================================ 1 passed in 0.50 seconds ============================================================================
    amaneti committed Jun 19, 2021
    Configuration menu
    Copy the full SHA
    855977b View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    e85fa80 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    58d6b7e View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    2b6ed1a View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    a5cf376 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    00155a7 View commit details
    Browse the repository at this point in the history
  7. [yang] sonic-copp

    * defaults to fields: COPP_GROUP  queue, trap_priority, color, cir, cbs, green_action, yellow_action, red_action
    * Mandatory fields: COPP_GROUP  trap_action, meter_type, mode and COPP_TRAP|trap_ids
    * Add more tests
    amaneti committed Jun 19, 2021
    Configuration menu
    Copy the full SHA
    f6cd482 View commit details
    Browse the repository at this point in the history
  8. [yang] Fix yang indentation

    amaneti committed Jun 19, 2021
    Configuration menu
    Copy the full SHA
    58dbba3 View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    481b5ce View commit details
    Browse the repository at this point in the history