(use upvote :thumbsup: for attentions)
Describe the bug
When the number of uplink ports are less than 57, the validation result should be PASS. However, it does not print anything.
In the above output, [Check 45/64] doesn't show the result PASS and the next check 46/64 is printed immediately after that.
To Reproduce
The current version is older than 6.0 and the target version is newer than 6.0 (i.e. versions are susceptible)
The number of uplinks is less than 57
Expected behavior
It should show PASS as the result.
Additional context
print_result() is missing in this condition.
if cversion.older_than("6.0(1a)") and tversion.newer_than("6.0(1a)"):
port_profiles = icurl('class', 'eqptPortP.json?query-target-filter=eq(eqptPortP.ctrl,"uplink")')
if not port_profiles or (len(port_profiles) < 57):
return result
(use upvote :thumbsup: for attentions) Describe the bug When the number of uplink ports are less than 57, the validation result should be
PASS
. However, it does not print anything.Script output
In the above output,
[Check 45/64]
doesn't show the resultPASS
and the next check46/64
is printed immediately after that.To Reproduce
Expected behavior It should show
PASS
as the result.Additional context
print_result()
is missing in this condition.