-
Notifications
You must be signed in to change notification settings - Fork 656
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
[config] Add Table hard dependency check #3159
Conversation
config/main.py
Outdated
@@ -1999,6 +2002,20 @@ def override_config_db(config_db, config_input): | |||
click.echo("Overriding completed. No service is restarted.") | |||
|
|||
|
|||
def yang_hard_dependency_check(config_json): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@liuh-80 Could you help review? |
/azp run Azure.sonic-utilities |
Azure Pipelines successfully started running 1 pipeline(s). |
hi @wen587 could you run test with 202305 with this PR? |
ADO: 26732148 #### What I did Add YANG hard depdency check for AAA and TACPLUS table #### How I did it Add a special check #### How to verify it Unit test
Hi @StormLiangMS , please see below 202305 test. tests/config_override_test.py::TestConfigOverride::test_broken_json PASSED [ 7%] |
ADO: 26732148 #### What I did Add YANG hard depdency check for AAA and TACPLUS table #### How I did it Add a special check #### How to verify it Unit test
Cherry-pick PR to 202305: #3210 |
ADO: 26732148 #### What I did Add YANG hard depdency check for AAA and TACPLUS table #### How I did it Add a special check #### How to verify it Unit test
ADO: 26732148 #### What I did Add YANG hard depdency check for AAA and TACPLUS table #### How I did it Add a special check #### How to verify it Unit test
ADO: 26732148 #### What I did Add YANG hard depdency check for AAA and TACPLUS table #### How I did it Add a special check #### How to verify it Unit test
ADO: 26732148 #### What I did Add YANG hard depdency check for AAA and TACPLUS table #### How I did it Add a special check #### How to verify it Unit test
Cherry-pick PR to 202311: #3225 |
ADO: 26732148 #### What I did Add YANG hard depdency check for AAA and TACPLUS table #### How I did it Add a special check #### How to verify it Unit test
AAA_TABLE = config_json.get("AAA", {}) | ||
TACPLUS_TABLE = config_json.get("TACPLUS", {}) | ||
|
||
aaa_authentication_login = AAA_TABLE.get("authentication", {}).get("login", "") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please check authorization field.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Offline discussed, the issue is that the checking logic here is not consistent with yang models. We need to fix either to make them aligned.
ADO: 26732148
What I did
Add YANG hard depdency check for AAA and TACPLUS table
How I did it
Add a special check
How to verify it
Unit test
Previous command output (if the output of a command-line utility has changed)
New command output (if the output of a command-line utility has changed)