Skip to content

topotato: test_bgp_default_originate_timer.py#126

Closed
Chromico wants to merge 1 commit intoopensourcerouting:topotato-basefrom
tecknologg:bgp-default-originate-timer
Closed

topotato: test_bgp_default_originate_timer.py#126
Chromico wants to merge 1 commit intoopensourcerouting:topotato-basefrom
tecknologg:bgp-default-originate-timer

Conversation

@Chromico
Copy link
Copy Markdown

The test is not consistently passing. Does not seem to be an issue with the timing.

Comment thread test_bgp_default_originate_timer.py Outdated
"bgpd",
f"show bgp ipv4 unicast 0.0.0.0/0 json",
maxwait=10.0,
compare=expected,
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

in the original topotest this is a "negative" check, it checks the route does NOT exist — need to do something similar here.

Good approach would be:

  1. wait for some other route to check the BGP session is up
  2. then check default route is empty/absent

Comment thread test_bgp_default_originate_timer.py Outdated
"""
configure terminal
router bgp
bgp default-originate timer 10
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

this is ≥ 10s …

Comment thread test_bgp_default_originate_timer.py Outdated
r2,
"bgpd",
f"show bgp ipv4 unicast 0.0.0.0/0 json",
maxwait=10.0,
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

… so this wait is not long enough for the 10s above.

⇒ shorten the 10s above, and make this down here maybe 15s (there is some additional delay, probably from internal BGP timers) ⇒ then it should work

Comment thread test_bgp_default_originate_timer.py Outdated
compare="",
)

yield from AssertVtysh.make(
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

ReconfigureFRR

Comment thread test_bgp_default_originate_timer.py Outdated
r3,
"vtysh",
"""
configure terminal
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

remove configure terminal for ReconfigureFRR

Comment thread test_bgp_default_originate_timer.py Outdated

yield from AssertVtysh.make(
r3,
"vtysh",
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Using bgpd here makes the test a little bit faster (or use less CPU)

@Chromico Chromico changed the title topotato: wip test_bgp_default_originate_timer.py topotato: test_bgp_default_originate_timer.py Sep 30, 2023
@Chromico Chromico marked this pull request as draft September 30, 2023 01:03
Signed-off-by: Nathan Mangar <nathan@thundergear.io>
@Chromico Chromico force-pushed the bgp-default-originate-timer branch from 6138071 to a9cf782 Compare December 15, 2023 11:46
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.

3 participants