[yang] update crm yang model for dynamic port breakout#6395
[yang] update crm yang model for dynamic port breakout#6395liat-grozovik merged 3 commits intosonic-net:masterfrom
Conversation
|
retest vsimage please |
| type threshold; | ||
| } | ||
|
|
||
| leaf dnat_entry_threshold_type { |
There was a problem hiding this comment.
Changes looks good to me, but we need to add tests.
To add Test for sonic-yang-module:
1.) Add example Config at:
https://github.com/Azure/sonic-buildimage/blob/e52581e919c95e861cf630c9c7e1a840fc5e8ebd/src/sonic-yang-models/tests/yang_model_tests/yangTest.json#L2
Example config should be in sonic-yang format.
2.) Add matching detail and expected error string at:
https://github.com/Azure/sonic-buildimage/blob/e52581e919c95e861cf630c9c7e1a840fc5e8ebd/src/sonic-yang-models/tests/yang_model_tests/test_yang_model.py#L52
If You add new leaf in YANG Models:
Then add corresponding config in same format as in configDB.json at:
https://github.com/Azure/sonic-buildimage/blob/4cf9316ec349f80deceb0d7665b0aaf85bfe2599/src/sonic-yang-models/tests/yang_model_tests/yangTest.json#L1038
And build both:
sonic_yang_mgmt-1.0-py3-none-any.whl
sonic_yang_models-1.0-py3-none-any.whl
Build tests will make sure, Translation works for new leafs in YANG models.
a7f850e to
27326cd
Compare
|
@praveen-li done, also fixed small issues/typos in CRM, please check |
It will be great if we can avoid the force push until necessary, thanks. |
| }, | ||
| 'CRM_WITH_WRONG_THRESHOLD_TYPE': { | ||
| 'desc': 'CRM_WITH_WRONG_THRESHOLD_TYPE must condition failure.', | ||
| 'eStr': self.defaultYANGFailure['None'] |
There was a problem hiding this comment.
If it is "must condition failure" then estr should be self.defaultYANGFailure['must'] + field name.
|
@praveen-li done, please check |
| "acl_counter_high_threshold": "85", | ||
| "acl_counter_low_threshold": "70", | ||
| "acl_counter_threshold_type": "percentage", | ||
| "snat_entry_threshold_type": "percentage", |
There was a problem hiding this comment.
kindly remove it from here because this config is just to test an unknown table.
| must "(current() > ../ipv6_neighbor_low_threshold)" | ||
| { | ||
| error-message "high_threshold should be more that low_threshold"; | ||
| error-message "high_threshold should be more than low_threshold"; |
There was a problem hiding this comment.
Cool, Thanks for fixing this.
praveen-li
left a comment
There was a problem hiding this comment.
LGTM, just remove extra config from CRM.
d7663bc to
6bc97e6
Compare
|
@praveen-li removed extra fields from CRM yang test model. Please quickly double check and I hope we can merge it. |
|
retest vsimage please |
praveen-li
left a comment
There was a problem hiding this comment.
LGTM, please make sure there are no test failures in any build, thanks.
Looks like tests are working and not have any failures. |
|
retest vsimage please |
|
@lguohan I can`t restart CI using "retest vsimage please", "retest this please". How can I restart vsimage? |
|
/AzurePipelines run |
|
Azure Pipelines successfully started running 1 pipeline(s). |
|
retest vsimage please |
1 similar comment
|
retest vsimage please |
|
retest vsimage please |
|
/AzurePipelines run |
|
Azure Pipelines successfully started running 1 pipeline(s). |
|
retest vsimage please |
2 similar comments
|
retest vsimage please |
|
retest vsimage please |
6bc97e6 to
a6ef50e
Compare
|
@lguohan @liat-grozovik @praveen-li looks like test passed, please merge. |
|
@praveen-li can you sign off? |
- Why I did it Fix DPB crash caused of new entries in config db. Details: sonic-net#6331 - How I did it Updated crm yang model
Why I did it Update FRR 7.2.1 head. The following is a list of new commits. 5ae667a1f Merge pull request #9335 from FRRouting/mergify/bp/stable/7.2/pr-9214 eb679e8a1 zebra: bugfix of error quit of zebra, due to no nexthop ACTIVE 80d2eaa98 Merge pull request #8886 from FRRouting/mergify/bp/stable/7.2/pr-8876 1eeab2c1e lib: remove pure attribute from functions that modify memory eb00dc4ec Merge pull request #6944 from LabNConsulting/working/lb/7.2/valgrind-supp-libyang b9d6d05bf bgpd: suppress new libyang_1.0 related loss reports 8c26a71eb Merge pull request #6562 from ton31337/fix/configuration_for_labeled_unicast_in_place_7.2 386a1719c bgpd: Make sure network/aggregate-address commands lay down under labeled safi b01c8bf28 Merge pull request #6526 from ton31337/fix/set_ipv6_ll_if_global_zero_7.2 c382833e8 bgpd: Use IPv6 LL address as nexthop if global was set to ::/LL 99509b835 Merge pull request #6395 from opensourcerouting/7.2/init-config-perms 7eef8f7b1 build: use configfile mode in init script 4cbe07705 Merge pull request #6360 from opensourcerouting/7.2/fix-warnings 84bb11785 nhrpd: clean up SA warning aac726476 nhrpd: be more careful with linked lists 3a4b6d654 debian: Fix spelling error 756c67c6c Merge pull request #6284 from opensourcerouting/7.2/gcc-10 65a116a64 Merge pull request #6354 from ton31337/fix/communities_bgpd_crash_7.2 f7a00fd67 bgpd: Check to ensure community attributes exist before freeing them a960f99c2 vrrpd: fix build on Fedora Rawhide d4caff99f babeld: GCC complaining about no return in non-void function a014c27ae babeld: fix build on Fedora Rawhide 79ff55b5b bgpd: remove unused variable ff343e588 pimd: Make frr able to be built by gcc 10 9a3cf1ba2 ldpd: remove multiple definitions of thread_master a19515bfe ldpd: fix another linking issue with GCC-10 b4c8de38c tests: fix build with GCC 10 4f27e8c85 ldpd: Fix linking error on Fedora Rawhide with GCC 10 How I did it Update FRR 7.2 pointer and create a tag frr-7.2.1-s4.
- Why I did it
Fix DPB crash caused of new entries in config db.
Details: #6331
- How I did it
Updated crm yang model
- How to verify it
- Which release branch to backport (provide reason below if selected)
- Description for the changelog
- A picture of a cute animal (not mandatory but encouraged)