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

Exit early if YANG validation fails in Golden Config #3490

Merged
merged 2 commits into from
Sep 4, 2024

Conversation

wen587
Copy link
Contributor

@wen587 wen587 commented Aug 15, 2024

ADO: 29254166

What I did

Exit early if golden config fails YANG validation

How I did it

Check before stop service in load_minigraph

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)

@wen587 wen587 marked this pull request as ready for review August 19, 2024 07:29
ganglyu
ganglyu previously approved these changes Aug 19, 2024
@xincunli-sonic
Copy link
Contributor

    table_hard_dependency_check(host_config)

This part also needs add other asics' config check?


Refers to: config/main.py:2007 in 16481df. [](commit_id = 16481df, deletion_comment = False)

@wen587
Copy link
Contributor Author

wen587 commented Aug 20, 2024

    table_hard_dependency_check(host_config)

This part also needs add other asics' config check?

Refers to: config/main.py:2007 in 16481df. [](commit_id = 16481df, deletion_comment = False)

Currently it only has dependency check about AAA which is only exist in host. It is weakened version of YANG validation based on PROD issue. I think after yang validation enabled, we can remove it or just add parts that YANG could not covered.

config/main.py Outdated Show resolved Hide resolved
config/main.py Outdated Show resolved Hide resolved
config/main.py Outdated Show resolved Hide resolved
Copy link
Contributor

@xincunli-sonic xincunli-sonic left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@wen587 wen587 merged commit c019c48 into sonic-net:master Sep 4, 2024
7 checks passed
mssonicbld pushed a commit to mssonicbld/sonic-utilities that referenced this pull request Sep 5, 2024
What I did
Exit early if golden config fails YANG validation

How I did it
Check before stop service in load_minigraph

How to verify it
Unit test

Previous command output (if the output of
@mssonicbld
Copy link
Collaborator

Cherry-pick PR to 202405: #3522

mssonicbld pushed a commit that referenced this pull request Sep 5, 2024
What I did
Exit early if golden config fails YANG validation

How I did it
Check before stop service in load_minigraph

How to verify it
Unit test

Previous command output (if the output of
mssonicbld pushed a commit to mssonicbld/sonic-utilities that referenced this pull request Sep 6, 2024
What I did
Exit early if golden config fails YANG validation

How I did it
Check before stop service in load_minigraph

How to verify it
Unit test

Previous command output (if the output of
@mssonicbld
Copy link
Collaborator

Cherry-pick PR to 202311: #3527

mssonicbld pushed a commit that referenced this pull request Sep 6, 2024
What I did
Exit early if golden config fails YANG validation

How I did it
Check before stop service in load_minigraph

How to verify it
Unit test

Previous command output (if the output of
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

8 participants