Skip to content
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

topotato: test_bgp_default_originate_timer.py #126

Draft
wants to merge 1 commit into
base: topotato-base
Choose a base branch
from

Conversation

Chromico
Copy link

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

"bgpd",
f"show bgp ipv4 unicast 0.0.0.0/0 json",
maxwait=10.0,
compare=expected,
Copy link

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

"""
configure terminal
router bgp
bgp default-originate timer 10
Copy link

Choose a reason for hiding this comment

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

this is ≥ 10s …

r2,
"bgpd",
f"show bgp ipv4 unicast 0.0.0.0/0 json",
maxwait=10.0,
Copy link

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

compare="",
)

yield from AssertVtysh.make(
Copy link

Choose a reason for hiding this comment

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

ReconfigureFRR

r3,
"vtysh",
"""
configure terminal
Copy link

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


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

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>
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