| Files | Last commit | Last update |
|---|---|---|
Add .github/copilot-instructions.md for AI-assisted development (#204) Signed-off-by: Rustiqly <rustiqly@users.noreply.github.com> Co-authored-by: Rustiqly <rustiqly@users.noreply.github.com> | 8 months ago | |
Implement translib backend logic for the gNSI Authz (#200) This commit adds the necessary transformer code to read authorization policy counters and related state from the Redis databases. Signed-off-by: kanchanavelusamy <velusamyk@google.com> Co-authored-by: kanchanavelusamy <velusamyk@google.com> | 8 months ago | |
Fix gNMI crash due to duplicate edges in dependency (#214) Fixes: https://github.com/sonic-net/sonic-gnmi/issues/670 RCA: Duplicate edges were being added in GetOrderedDepTables() when both leafref and dependent-on pointed to the same table, causing go-toposort panic. Sample reproduction scenario: Adding BGP YANG modules to import.mk caused gNMI/translib to crash on startup, making gNMI unusable. Fix: Add duplicate edge check in dependent-on block to avoid adding the same edge twice. This is the same check which is being leveraged in other places also in cvl_api.go to avoid such crashes. Signed-off-by: Rakshitha SK <rsk@marvell.com> | 5 months ago | |
Providing transformer support for sflow feature (#91) * Providing transformer support for sflow feature Signed-off-by: Gokulnath-Raja <Gokulnath_R@dell.com> Co-authored-by: mohanapriya-meganathan <mohanapriya.m1@dell.com> * Providing transformer support for sflow feature - Addressed review comments Signed-off-by: Gokulnath-Raja <Gokulnath_R@dell.com> Co-authored-by: mohanapriya-meganathan <mohanapriya.m1@dell.com> * Providing transformer support for sflow feature - Addressed review comments for sflow app test Signed-off-by: Gokulnath-Raja <Gokulnath_R@dell.com> Co-authored-by: mohanapriya-meganathan <mohanapriya.m1@dell.com> * Update azure-pipelines.yml Enabling sflow feature for the * Update azure-pipelines.yml * Added support unit test run Signed-off-by: Gokulnath-Raja <Gokulnath_R@dell.com> Co-authored-by: mohanapriya-meganathan <mohanapriya.m1@dell.com> * Added rclientDBNum in test infra wq --------- Signed-off-by: Gokulnath-Raja <Gokulnath_R@dell.com> Co-authored-by: mohanapriya-meganathan <mohanapriya.m1@dell.com> | 3 years ago | |
Add openconfig system annotation for authz (#206) Signed-off-by: Niranjani Vivek <niranjaniv@google.com> | 7 months ago | |
Debian Trixie migration for sonic-mgmt-common (#211) * Debian Trixie migration for sonic-mgmt-common Signed-off-by: Amruta Sali <amruta_sali@dell.com> * Debian trixie migration - fix pipeline build issue for libpcre3-dev Signed-off-by: Amruta Sali <amruta_sali@dell.com> * Addressed code review comment for editing vendor/modules.txt by appending raw package paths Signed-off-by: Amruta Sali <amruta_sali@dell.com> * addresed code review comment for azure-pipelines.yml about pip install using a hard-coded wheel filename (sonic_yang_models-1.0-py3-none-any.whl) Signed-off-by: Amruta Sali <amruta_sali@dell.com> --------- Signed-off-by: Amruta Sali <amruta_sali@dell.com> Co-authored-by: Lihua Yuan <lihuay@users.noreply.github.com> | 6 months ago | |
Markdown tree fixes 1. Fixed module resolution issue when new extension mods are added 2. Refactored the code to bring in below improvements 2.1. Improved performance more then 50% 2.2 Simplified module paths and renamed dicts with better names 2.3. Improved code with comments | 1 year ago | |
Implement RCM code with redis version 9 support (#202) Signed-off-by: Niranjani Vivek <niranjaniv@google.com> | 6 months ago | |
[ci]: setup proper azp (#44) Signed-off-by: Guohan Lu <lguohan@gmail.com> | 5 years ago | |
CVL Infra Enhancments and Fixes 1. Enhancement - Support TABLE keys modelled as container 2. Enhancement - DBAL CountKeysPattern API 3. Optimisation: removing libyang syntax checks for Full entry delete 4. Enhancement - CVL support for SONiC YANG table with distinct YANG 4.1 Enhancement - For multi-list tables correct Redis pattern and sep are matched and picked. 4.2 Fix - The cvl code to build table expression based on YANG list name instead of table name. 4.3 Fix - CVL maintains tableInfo using a LIST name, fixed the inconsistent 4.4 Enhancement - code to lookup using list name instead of table name. 4.5 Fix - recognition of table and fields if the table contains mutiple lists and if table name as prefix is not present in any of the list name 5. Optimisation: removing extra checks in CVL for non existing fields for update operation 6. Fixes: CVL does not honours "not equal" operator in must expression predicate 7. Fixes: clear depDataCache along with semantic cache, when CVL validation completes for clen state. text CVL maintains a separate cache to check if dependent data is already to the semantic cache. If the entry is present in this cache, the semantic cache is not updated. When we clear clear the semantic cache after every ValidateEditConfig we also need to clear depDataCache. 8. Fixes: clear Xpath engine cache. text CVL maintains a seesion level cache for semantic validation, this cache generates entry for table each time they are operated on. As a result this cache contains duplicate entries for a table and in some cases it creates a stale entries for leaf, if they are deleted in the Latest request. 9 Fixes: stale entries in semantic documents text CVL maintains a cache of semantic document at the session level. If Delete for an entry is successful, the cache still contains a deleted entry, this is resulting in must expression failure for count cases, the logic in count() considers this entry in to consideration. Therefore cache is cleared for the deleted entry. - Also modified addYangDataForMustExp() to avoid using global cache and use CVL wrapper for DBAL. - Modified fetchTableDataToTmpCache() to use CVL wrapper for DBAL's pipeline. 10: Fixes: Incorrect match for depdata in checkDeleteInRequestCache text For find in request key, case - T2*|K1. If the non-delete configuration exists for dependent data in the Requestcache, its getting matched, and cvl considers its already present in deleteCache and therefore ignores validation. modified the condition to match only if entry is deleted. Further enhanced the code for find in request hash-field case - T2*|K2:{H1: K1} to match correcly for UPDATE cases. Also in case of leaflist. 11: Enhancement: Use DBAL's CVL wrapper for pipeline - All pipelines were modified use CVL's DB wrapper. 12: Enhancement: Use CVL's DB wrapper in validateLeafref and fixes for multi-key table instance 13: Fixes - handle incremental build and stale files removal - Fixed yin generator text Tool does not write if the file is not modified and writes only when yin modified or added as new. Also it removes any stale yin files (if present) 14. Enhancement: min-elements support for leaf-list 15. Enhancement - Advanced search functions in cvl DBAccess 16. Go test enhancements 17. Update the test YANGs with more complex cases. 18. Enhancement: changes to the count and filter lua scripts to check both the db and candidate config data; modified the count and lookup 19. Enhancement: Added Pipe query support for HGetAll, HGet, HMGet; NewValidationSession, cvlDBAccess changes, removing validatedDataQuery 20. Fixes: Modify the session cache type from interface to map[string]interface in the custom validations, and used specific cache key name to access its own cache to avoid overwriting the same cache object by other module validation code 21. Enhancement: Added DB access adapter like APIs for redis APIs in CVL layer to access the DB access methods from the CVL layer. 22. Fixes: Added support for NULL field in the Keys, Exists API, fixed merging issue in HGetAll, HGet, HMGet in case of delete operation type 23. Fixes: Made changes to handle the redis.Nil error returned by redis client API. 24. Fixes: Leafref check should check for all DELETE and CREATE of referred configs in request cache. 25. Fixes: Removed DB ping call in CVL whenever a new DB client is created. 26. Enhacement: Debugging and log enhancement. 27. Enhancement: CVL logs to appear in Rest-server logs. 28. Improved CVL performance for bulk configs like ACL rules creation. text For evaluation of leafref, When and Must expressions, CVL queries dependent data and merge with config data and prepares im-memory XML to be evaluated by XPath engine. The 'addDependentData" call was adding same dependent data multiple whenever it has to evaluate leafref, when or must expression. When multiple ACL Rules within same Acl-set are configured in single request, CVL was adding Acl-set multiple times dues to which XML size becomes too huge and XPath engines takes long to evaluate. For 750 Acl rules creation there is 95% improvement in performance. 29. Added support for multiple custom validation callbacks per node in CVL 30. Fixes: or Replace operations, before performing semantic validation on Update request, delete fields from yang tree that are provided with Delete request. 31. Enhancement: Added new extension to define dependency between tables. text This new extension 'dependent-on <list-name>' has to be used when dependencies between tables can't be defined using leafref. This has to be added under list. It should not be used under container or leaf/leaf-list nodes. Only one list-name can be added to this extension. 32. Fixes: When mandatory node is getting deleted during cascade-delete, entire entry to be deleted. So find dependent entries in this entry and mark them too for delete. 33. Fixed memory leak observed in CVL CGo code that uses libyang third party library for Syntax validation. Co-authored-by: Mohammed Faraaz C <mohammed.faraaz@broadcom.com> Co-authored-by: Sachin Holla <sachin.holla@broadcom.com> Co-authored-by: Balachandar Mani <balachandar.mani@broadcom.com> Co-authored-by: Mayank Maheshwari <mayank.maheshwari@broadcom.com> Co-authored-by: Shyam Mohan <shyam.mohan@broadcom.com> | 2 years ago | |
Initial commit | 7 years ago | |
[build] Add go mod tidy before go mod vendor for Go 1.24 compat (#207) Go 1.24 (shipped in Debian Trixie) is stricter about module graph consistency. Running go mod vendor without go mod tidy first fails with module resolution errors when the go.mod was written for an older Go version. Add go mod tidy before go mod vendor. This is backward compatible — on Go 1.21 (bookworm) it is a no-op. Signed-off-by: Rustiqly <rustiqly@users.noreply.github.com> Co-authored-by: Rustiqly <rustiqly@users.noreply.github.com> | 7 months ago | |
Debian Trixie migration for sonic-mgmt-common (#211) * Debian Trixie migration for sonic-mgmt-common Signed-off-by: Amruta Sali <amruta_sali@dell.com> * Debian trixie migration - fix pipeline build issue for libpcre3-dev Signed-off-by: Amruta Sali <amruta_sali@dell.com> * Addressed code review comment for editing vendor/modules.txt by appending raw package paths Signed-off-by: Amruta Sali <amruta_sali@dell.com> * addresed code review comment for azure-pipelines.yml about pip install using a hard-coded wheel filename (sonic_yang_models-1.0-py3-none-any.whl) Signed-off-by: Amruta Sali <amruta_sali@dell.com> --------- Signed-off-by: Amruta Sali <amruta_sali@dell.com> Co-authored-by: Lihua Yuan <lihuay@users.noreply.github.com> | 6 months ago | |
Implement RCM code with redis version 9 support (#202) Signed-off-by: Niranjani Vivek <niranjaniv@google.com> | 6 months ago | |
Implement RCM code with redis version 9 support (#202) Signed-off-by: Niranjani Vivek <niranjaniv@google.com> | 6 months ago |
Project README is empty