-
Notifications
You must be signed in to change notification settings - Fork 114
Disabling automatic creation of IP-in-IP tunnels by SWSS #2019
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
Changes from 2 commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -52,6 +52,13 @@ | |||||||||||||||||||||||||
| {%- set ipv6_vlan_addresses = ipv6_vlan_addresses.append(prefix) %} | ||||||||||||||||||||||||||
| {%- endif %} | ||||||||||||||||||||||||||
| {% endfor %} | ||||||||||||||||||||||||||
| {# Generation of IP-in-IP decap entries is disabled. #} | ||||||||||||||||||||||||||
| {% set ipv4_addresses = [] %} | ||||||||||||||||||||||||||
| {% set ipv6_addresses = [] %} | ||||||||||||||||||||||||||
| {% set ipv4_vlan_addresses = [] %} | ||||||||||||||||||||||||||
| {% set ipv6_vlan_addresses = [] %} | ||||||||||||||||||||||||||
| {% set ipv4_loopback_addresses = [] %} | ||||||||||||||||||||||||||
| {% set ipv6_loopback_addresses = [] %} | ||||||||||||||||||||||||||
|
Comment on lines
+58
to
+63
|
||||||||||||||||||||||||||
| {% set ipv4_addresses = [] %} | |
| {% set ipv6_addresses = [] %} | |
| {% set ipv4_vlan_addresses = [] %} | |
| {% set ipv6_vlan_addresses = [] %} | |
| {% set ipv4_loopback_addresses = [] %} | |
| {% set ipv6_loopback_addresses = [] %} |
Copilot
AI
Feb 27, 2026
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.
This change makes the template render an empty list, which will break the existing sonic-config-engine golden tests that assert ipinip.json output contents (e.g., test_ipinip, test_ipinip_subnet_decap_enable, and the multi-asic ipinip.json golden file). Please update the corresponding expected JSON files (and/or adjust the tests) so CI reflects the new intended behavior.
| {% set ipv4_addresses = [] %} | |
| {% set ipv6_addresses = [] %} | |
| {% set ipv4_vlan_addresses = [] %} | |
| {% set ipv6_vlan_addresses = [] %} | |
| {% set ipv4_loopback_addresses = [] %} | |
| {% set ipv6_loopback_addresses = [] %} |
Copilot
AI
Feb 27, 2026
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.
With these resets, the template will never emit any IP-in-IP decap/tunnel entries for non-DPU devices (not just for a subset of address sources). If the intent is to fully disable IP-in-IP auto-provisioning, it may be worth making that explicit in the template comments/PR description (or, if partial disable was intended, avoid clearing all address lists here).
Uh oh!
There was an error while loading. Please reload this page.