Is it platform specific
generic
Importance or Severity
Critical
Description of the bug
All tests on test_bgp_single_session_flaps.py are not updated to IPv6 only topology
Steps to Reproduce
run any test of test_bgp_single_session_flaps.py with IPv6 only topology
Actual Behavior and Expected Behavior
since this is v6 onl;y topolgy the memory_stats of ipv4 are 0. In practice stats[index][3] , stats[index][4],stats[index][5] are 0 (as they related to ipv4.
Expected: not to run the assertion for ipv4 when v6 only
Relevant log output
def test_bgp_single_session_flaps(setup):
global flap_threads
global stop_threads
stop_threads = False
# get baseline stat information
stats = []
stats.append(get_cpu_stats(setup['duthost']))
# start threads to flap neighbor sessions
thread = InterruptableThread(
target=flap_neighbor_session,
args=(setup['neighhost']))
thread.daemon = True
thread.start()
flap_threads.append(thread)
for i in range(10):
stats.append(get_cpu_stats(setup['duthost']))
index = len(stats) - 1
assert stats[index][0] < (stats[0][0] + cpuSpike)
assert stats[index][1] < (stats[0][1] + cpuSpike)
assert stats[index][2] < (stats[0][2] + cpuSpike)
> assert stats[index][3] < (stats[0][3] * memSpike)
E AssertionError
i = 0
index = 1
stats = [[0.53, 0.95, 0.9, 0.0, 0.0, 0.0, ...], [0.6, 0.96, 0.91, 0.0, 0.0, 0.0, ...]]
thread = <InterruptableThread(Thread-30, stopped daemon 139883251230464)>
bgp/test_bgp_session_flap.py:163: AssertionError
Output of show version
Attach files (if any)
No response
Is it platform specific
generic
Importance or Severity
Critical
Description of the bug
All tests on test_bgp_single_session_flaps.py are not updated to IPv6 only topology
Steps to Reproduce
run any test of test_bgp_single_session_flaps.py with IPv6 only topology
Actual Behavior and Expected Behavior
since this is v6 onl;y topolgy the memory_stats of ipv4 are 0. In practice stats[index][3] , stats[index][4],stats[index][5] are 0 (as they related to ipv4.
Expected: not to run the assertion for ipv4 when v6 only
Relevant log output
def test_bgp_single_session_flaps(setup): global flap_threads global stop_threads stop_threads = False # get baseline stat information stats = [] stats.append(get_cpu_stats(setup['duthost'])) # start threads to flap neighbor sessions thread = InterruptableThread( target=flap_neighbor_session, args=(setup['neighhost'])) thread.daemon = True thread.start() flap_threads.append(thread) for i in range(10): stats.append(get_cpu_stats(setup['duthost'])) index = len(stats) - 1 assert stats[index][0] < (stats[0][0] + cpuSpike) assert stats[index][1] < (stats[0][1] + cpuSpike) assert stats[index][2] < (stats[0][2] + cpuSpike) > assert stats[index][3] < (stats[0][3] * memSpike) E AssertionError i = 0 index = 1 stats = [[0.53, 0.95, 0.9, 0.0, 0.0, 0.0, ...], [0.6, 0.96, 0.91, 0.0, 0.0, 0.0, ...]] thread = <InterruptableThread(Thread-30, stopped daemon 139883251230464)> bgp/test_bgp_session_flap.py:163: AssertionErrorOutput of
show versionAttach files (if any)
No response