mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-07-27 05:28:51 +00:00
Merge pull request #14367 from donaldsharp/ospfapi_test_failure
two test cleanups
This commit is contained in:
commit
c84a680097
@ -1,6 +1,6 @@
|
|||||||
!
|
!
|
||||||
router bgp 65001
|
router bgp 65001
|
||||||
bgp max-med on-startup 5 777
|
bgp max-med on-startup 30 777
|
||||||
no bgp ebgp-requires-policy
|
no bgp ebgp-requires-policy
|
||||||
neighbor 192.168.255.2 remote-as 65001
|
neighbor 192.168.255.2 remote-as 65001
|
||||||
neighbor 192.168.255.2 timers 3 10
|
neighbor 192.168.255.2 timers 3 10
|
||||||
|
@ -82,12 +82,12 @@ def test_bgp_max_med_on_startup():
|
|||||||
|
|
||||||
# Check session is established
|
# Check session is established
|
||||||
test_func = functools.partial(_bgp_converge, router2)
|
test_func = functools.partial(_bgp_converge, router2)
|
||||||
_, result = topotest.run_and_expect(test_func, None, count=30, wait=0.5)
|
_, result = topotest.run_and_expect(test_func, None, count=60, wait=1.0)
|
||||||
assert result is None, "Failed bgp convergence on r2"
|
assert result is None, "Failed bgp convergence on r2"
|
||||||
|
|
||||||
# Check metric has value of max-med
|
# Check metric has value of max-med
|
||||||
test_func = functools.partial(_bgp_has_routes, router2, 777)
|
test_func = functools.partial(_bgp_has_routes, router2, 777)
|
||||||
_, result = topotest.run_and_expect(test_func, None, count=30, wait=0.5)
|
_, result = topotest.run_and_expect(test_func, None, count=60, wait=1.0)
|
||||||
assert result is None, "r2 does not receive routes with metric 777"
|
assert result is None, "r2 does not receive routes with metric 777"
|
||||||
|
|
||||||
# Check that when the max-med timer expires, metric is updated
|
# Check that when the max-med timer expires, metric is updated
|
||||||
|
@ -218,10 +218,12 @@ def _test_router_id(tgen, testbin):
|
|||||||
|
|
||||||
step("router id: check for modified router id")
|
step("router id: check for modified router id")
|
||||||
r1.vtysh_multicmd("conf t\nrouter ospf\nospf router-id 1.1.1.1")
|
r1.vtysh_multicmd("conf t\nrouter ospf\nospf router-id 1.1.1.1")
|
||||||
|
r1.vtysh_multicmd("clear ip ospf process")
|
||||||
_wait_output(p, "SUCCESS: {}".format(waitlist[1]))
|
_wait_output(p, "SUCCESS: {}".format(waitlist[1]))
|
||||||
|
|
||||||
step("router id: check for restored router id")
|
step("router id: check for restored router id")
|
||||||
r1.vtysh_multicmd("conf t\nrouter ospf\nospf router-id 1.0.0.0")
|
r1.vtysh_multicmd("conf t\nrouter ospf\nospf router-id 1.0.0.0")
|
||||||
|
r1.vtysh_multicmd("clear ip ospf process")
|
||||||
_wait_output(p, "SUCCESS: {}".format(waitlist[2]))
|
_wait_output(p, "SUCCESS: {}".format(waitlist[2]))
|
||||||
except Exception as error:
|
except Exception as error:
|
||||||
logging.error("ERROR: %s", error)
|
logging.error("ERROR: %s", error)
|
||||||
|
Loading…
Reference in New Issue
Block a user