Signed-off-by: Donatas Abraitis <donatas@opensourcerouting.org>
ave_b = float(delta_b) / float(num)
luCommand(
rtr,
- 'vtysh -c "show thread cpu"',
+ 'vtysh -c "show event cpu"',
".",
"pass",
"BGPd heap: {0} {1} --> {2} {3} ({4} {1}/vpn route)".format(
)
luCommand(
rtr,
- 'vtysh -c "show thread cpu"',
+ 'vtysh -c "show event cpu"',
".",
"pass",
"Zebra heap: {0} {1} --> {2} {3} ({4} {1}/vpn route)".format(
tgen = get_topogen()
router = tgen.gears[router]
- thread_output = router.vtysh_cmd("show thread timers")
+ output = router.vtysh_cmd("show event timers")
- timer_running = "set_overload_on_start_timer" in thread_output
+ timer_running = "set_overload_on_start_timer" in output
if timer_running == timer_expected:
return True
return "Expected timer running status: {}".format(timer_expected)