Skip to content

Replace deprecated gateway4 with routes syntax in netplan examples#947

Merged
berendt merged 1 commit intomainfrom
gh1334
Mar 17, 2026
Merged

Replace deprecated gateway4 with routes syntax in netplan examples#947
berendt merged 1 commit intomainfrom
gh1334

Conversation

@berendt
Copy link
Member

@berendt berendt commented Mar 17, 2026

The gateway4 key is deprecated in netplan and causes errors on Ubuntu 24.04. Use the routes syntax instead, consistent with the network configuration guide. (osism/issues#1334)

Closes osism/issues#1334

AI-assisted: Claude Code

The gateway4 key is deprecated in netplan and causes errors on Ubuntu
24.04. Use the routes syntax instead, consistent with the network
configuration guide. (osism/issues#1334)

Closes osism/issues#1334

AI-assisted: Claude Code

Signed-off-by: Christian Berendt <berendt@osism.tech>
@github-actions
Copy link

MegaLinter analysis: Error

Descriptor Linter Files Fixed Errors Warnings Elapsed time
✅ ACTION actionlint 3 0 0 0.03s
✅ JSON jsonlint 4 0 0 0.1s
✅ JSON prettier 4 0 0 0.45s
✅ JSON v8r 4 0 0 8.58s
✅ MARKDOWN markdownlint 154 0 0 2.0s
✅ MARKDOWN markdown-table-formatter 154 0 0 0.28s
✅ REPOSITORY checkov yes no no 17.19s
✅ REPOSITORY git_diff yes no no 0.07s
✅ REPOSITORY secretlint yes no no 1.83s
✅ REPOSITORY trufflehog yes no no 4.25s
✅ SPELL cspell 183 0 0 5.32s
❌ SPELL lychee 163 1 0 36.51s
✅ YAML prettier 5 0 0 0.35s
✅ YAML v8r 5 0 0 6.48s
✅ YAML yamllint 5 0 0 0.42s

Detailed Issues

❌ SPELL / lychee - 1 error
[ERROR] https://cloud-init.io/ | Too many redirects: error following redirect for url (https://cookies.canonical.com/api/v1/cookies/session?return_uri=https%3A%2F%2Fcloud-init.io%2F_cookies%2Fcallback%3Fcode%3D958859f82a1b23545bfe681392d65420%26action%3DNone%26cookie_redirect_success%3Dtrue%26return_uri%3Dhttps%3A%2F%2Fcloud-init.io%2F_cookies%2Fcallback%3Fcode%253D12284b7462390afe120f64b397a2eee2%2526action%253DNone%2526cookie_redirect_success%253Dtrue%2526return_uri%253Dhttps%3A%2F%2Fcloud-init.io%2F%2526preferences_unset%253Dtrue%26preferences_unset%3Dtrue)
📝 Summary
---------------------
🔍 Total..........775
✅ Successful.....732
⏳ Timeouts.........0
🔀 Redirected.......0
👻 Excluded........42
❓ Unknown..........0
🚫 Errors...........1

Errors in docs/cloud-in-a-box/index.md
[ERROR] https://cloud-init.io/ | Too many redirects: error following redirect for url (https://cookies.canonical.com/api/v1/cookies/session?return_uri=https%3A%2F%2Fcloud-init.io%2F_cookies%2Fcallback%3Fcode%3D958859f82a1b23545bfe681392d65420%26action%3DNone%26cookie_redirect_success%3Dtrue%26return_uri%3Dhttps%3A%2F%2Fcloud-init.io%2F_cookies%2Fcallback%3Fcode%253D12284b7462390afe120f64b397a2eee2%2526action%253DNone%2526cookie_redirect_success%253Dtrue%2526return_uri%253Dhttps%3A%2F%2Fcloud-init.io%2F%2526preferences_unset%253Dtrue%26preferences_unset%3Dtrue)

See detailed reports in MegaLinter artifacts

Your project could benefit from a custom flavor, which would allow you to run only the linters you need, and thus improve runtime performances. (Skip this info by defining FLAVOR_SUGGESTIONS: false)

  • Documentation: Custom Flavors
  • Command: npx mega-linter-runner@9.4.0 --custom-flavor-setup --custom-flavor-linters ACTION_ACTIONLINT,JSON_JSONLINT,JSON_V8R,JSON_PRETTIER,MARKDOWN_MARKDOWNLINT,MARKDOWN_MARKDOWN_TABLE_FORMATTER,REPOSITORY_CHECKOV,REPOSITORY_GIT_DIFF,REPOSITORY_SECRETLINT,REPOSITORY_TRUFFLEHOG,SPELL_CSPELL,SPELL_LYCHEE,YAML_PRETTIER,YAML_YAMLLINT,YAML_V8R

MegaLinter is graciously provided by OX Security
Show us your support by starring ⭐ the repository

@berendt berendt merged commit 8ce0d65 into main Mar 17, 2026
2 of 3 checks passed
@berendt berendt deleted the gh1334 branch March 17, 2026 17:56
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.

[doc] /inventory/host_vars/node01 - section network: gateway4 - wrong parameter

1 participant