Skip to content

T9659: runtime: add route_maps redirect and tombstones for removed modules - #525

Draft
rasty94 wants to merge 4 commits into
vyos:mainfrom
rasty94:T9659/runtime-route-maps-redirect
Draft

rasty94 wants to merge 4 commits into
vyos:mainfrom
rasty94:T9659/runtime-route-maps-redirect

Conversation

@rasty94

@rasty94 rasty94 commented Nov 20, 2026

Copy link
Copy Markdown
Contributor

Change Summary

meta/runtime.yml has a short-name redirect for every resource module except route_maps, so vyos.vyos.route_maps does not resolve.

The modules removed in 4.0.0 (vyos_interface, vyos_l3_interface, vyos_linkagg, vyos_lldp, vyos_lldp_interface, vyos_static_route) have no tombstone, so playbooks that still use them fail with a generic "couldn't resolve module/action" error instead of naming the replacement. Their action plugins are still shipped although the modules are gone.

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Code style update (formatting, renaming)
  • Refactoring (no functional changes)
  • Migration from an old Vyatta component to vyos-1x, please link to related PR inside obsoleted component
  • Other (please describe):

Related Task(s)

Related PR(s)

Component(s) name

meta/runtime.yml

Proposed changes

  • Add route_maps: redirect: vyos.vyos.vyos_route_maps.
  • Add tombstones for the 6 removed modules, short and vyos_ names, in the same format as the existing logging ones: removal_version: 4.0.0, warning_text: use <replacement> instead.
  • Delete the 6 dead action plugins and their action-plugin-docs lines in tests/sanity/ignore-2.16 to 2.22.
  • Changelog fragment.

How to test

ansible-test sanity --test runtime-metadata
ansible-test sanity --test action-plugin-docs

Test results

Both pass with ansible-core 2.18 on Python 3.12. As a negative check, setting removal_version to 99.0.0 makes runtime-metadata fail, so the tombstones are validated. Unit suite unchanged (598 passed). Not run on ansible-core 2.19 to 2.22.

  • Sanity tests passed
  • Unit tests passed

Tested against VyOS versions:

  • Not applicable (collection metadata only).

Checklist:

  • I have read the CONTRIBUTING document
  • I have linked this PR to one or more Phabricator Task(s)
  • I have run the ansible sanity and unit tests
  • My commit headlines contain a valid Task id
  • My change requires a change to the documentation
  • I have updated the documentation accordingly
  • I have added unit tests to cover my changes
  • I have added a file to changelogs/fragments to describe the changes

…dules

route_maps was the only resource module without a short-name redirect.
vyos_interface, vyos_l3_interface, vyos_linkagg, vyos_lldp,
vyos_lldp_interface and vyos_static_route were removed in 4.0.0 but had
no tombstone, while their action plugins were left behind. Add tombstones
pointing to the replacement modules and delete the dead action plugins and
their sanity ignore entries.
Copilot AI balanced review requested due to automatic review settings November 20, 2026 09:18

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota. Try requesting a review at a lower effort level.

@coderabbitai

coderabbitai Bot commented Nov 20, 2026

Copy link
Copy Markdown

Important

Draft PR not reviewed

Draft PRs are not automatically reviewed by default.

  • Trigger a manual review

To automatically review draft PRs, update your CodeRabbit configuration:

reviews:
  auto_review:
    drafts: true
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Copilot AI balanced review requested due to automatic review settings November 22, 2026 19:40

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota. Try requesting a review at a lower effort level.

@omnom62 omnom62 added legacy Exempt from per-commit T-ID check (title T-ID still required); grandfathered PRs and removed invalid-task-id labels Nov 22, 2026
Copilot AI balanced review requested due to automatic review settings November 22, 2026 19:59

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota. Try requesting a review at a lower effort level.

Copilot AI balanced review requested due to automatic review settings November 23, 2026 22:49

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota. Try requesting a review at a lower effort level.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

legacy Exempt from per-commit T-ID check (title T-ID still required); grandfathered PRs

Development

Successfully merging this pull request may close these issues.

3 participants