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

Check if INTERFACE needs to be added to config_db in SONiC role #348

Closed
wants to merge 1 commit into from

Conversation

iljarotar
Copy link
Contributor

The template for the config_db.json currently has the problem of potentially adding INTERFACE: null to the config_db, which ruins all interface configuration. Unfortunately the scoping of jinja2 variables makes it impossible to change a variable value inside of a scope and access the updated value from a different scope (See docs). So I ended up using these complicated chains of filters. Better ideas are welcome.

@iljarotar iljarotar requested a review from a team as a code owner November 7, 2024 08:13
@robertvolkmann
Copy link
Contributor

@iljarotar please add a test for this case.

@iljarotar
Copy link
Contributor Author

This template is too complicated and error prone. Will try to solve it differently.

@iljarotar iljarotar closed this Nov 12, 2024
@iljarotar iljarotar deleted the fix-sonic-config-interface-null branch November 12, 2024 12:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants