-
Notifications
You must be signed in to change notification settings - Fork 12
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
base: topotato-base
Are you sure you want to change the base?
topotato: test_bgp_default_originate_timer.py #126
Conversation
test_bgp_default_originate_timer.py
Outdated
"bgpd", | ||
f"show bgp ipv4 unicast 0.0.0.0/0 json", | ||
maxwait=10.0, | ||
compare=expected, |
There was a problem hiding this comment.
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:
- wait for some other route to check the BGP session is up
- then check default route is empty/absent
test_bgp_default_originate_timer.py
Outdated
""" | ||
configure terminal | ||
router bgp | ||
bgp default-originate timer 10 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this is ≥ 10s …
test_bgp_default_originate_timer.py
Outdated
r2, | ||
"bgpd", | ||
f"show bgp ipv4 unicast 0.0.0.0/0 json", | ||
maxwait=10.0, |
There was a problem hiding this comment.
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
test_bgp_default_originate_timer.py
Outdated
compare="", | ||
) | ||
|
||
yield from AssertVtysh.make( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
⇒ ReconfigureFRR
test_bgp_default_originate_timer.py
Outdated
r3, | ||
"vtysh", | ||
""" | ||
configure terminal |
There was a problem hiding this comment.
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
test_bgp_default_originate_timer.py
Outdated
|
||
yield from AssertVtysh.make( | ||
r3, | ||
"vtysh", |
There was a problem hiding this comment.
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)
Signed-off-by: Nathan Mangar <[email protected]>
6138071
to
a9cf782
Compare
The test is not consistently passing. Does not seem to be an issue with the timing.