Skip to content

Use (optional) reduced OSPF timers in BGP integration tests#3303

Merged
ipspace merged 1 commit intodevfrom
it-ospf-timers
Apr 9, 2026
Merged

Use (optional) reduced OSPF timers in BGP integration tests#3303
ipspace merged 1 commit intodevfrom
it-ospf-timers

Conversation

@ipspace
Copy link
Copy Markdown
Owner

@ipspace ipspace commented Apr 9, 2026

This change tries to use the short OSPF timers in BGP integration tests (guarded with _adjust entry that checks the device capability) and can reduce the runtime of an integration test by ~10 seconds.

This change tries to use the short OSPF timers in BGP integration
tests (guarded with _adjust entry that checks the device capability)
and can reduce the runtime of an integration test by ~10 seconds.
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR reduces runtime of several BGP integration tests by configuring shorter OSPF hello/dead timers, while keeping compatibility by conditionally removing the timer settings on devices that don’t support ospf.timers via the existing _adjust mechanism.

Changes:

  • Extend adjust_test plugin removal logic to support object:item syntax (e.g. nodes:ospf.timers) for removing a nested key from all items in a topology subsection.
  • Update multiple BGP integration topology YAMLs to:
    • load adjust_test from the test plugin path, and
    • set reduced ospf.timers.{hello,dead} with an _adjust stanza that removes timers when unsupported.
  • Move defaults.bgp.as to bgp.as in the updated test topologies.

Reviewed changes

Copilot reviewed 6 out of 6 changed files in this pull request and generated no comments.

Show a summary per file
File Description
tests/integration/plugin/adjust_test.py Adds object:item removal support to delete a nested key across all entries (used for nodes:ospf.timers).
tests/integration/bgp/02-ibgp-ebgp-session.yml Enables adjust_test, sets reduced OSPF timers, removes timers when unsupported.
tests/integration/bgp/03-ibgp-rr.yml Enables adjust_test, sets reduced OSPF timers, removes timers when unsupported.
tests/integration/bgp/04-originate.yml Sets reduced OSPF timers and adds conditional removal for unsupported devices.
tests/integration/bgp/05-community.yml Enables adjust_test alongside files, sets reduced OSPF timers, removes timers when unsupported.
tests/integration/bgp/08-ibgp-localas.yml Enables adjust_test, sets reduced OSPF timers, removes timers when unsupported.

@ipspace ipspace merged commit eb1616c into dev Apr 9, 2026
17 checks passed
@ipspace ipspace deleted the it-ospf-timers branch April 9, 2026 10:24
Copilot AI added a commit that referenced this pull request Apr 9, 2026
ipspace pushed a commit that referenced this pull request Apr 10, 2026
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