test generator fix
This commit is contained in:
parent
51daa79d39
commit
86db3f9801
|
@ -30,8 +30,8 @@ def generate_random_test_cases(rules, n):
|
|||
print(f"{test_network} is closer to {oth_network} than {closest_rule[0]}")
|
||||
closest_rule = oth_rule
|
||||
|
||||
f.write(f"{test_network} {closest_rule[1]}\n")
|
||||
print(f"Generated test case: {test_network} {closest_rule[1]}")
|
||||
f.write(f"{test_network.supernet(new_prefix=closest_rule[0].prefixlen)} {closest_rule[1]}\n")
|
||||
# print(f"Generated test case: {test_network} {closest_rule[1]}")
|
||||
print("Tests for rule", rule_network, "with next hop", rule_next_hop, "generated")
|
||||
|
||||
def main():
|
||||
|
|
Loading…
Reference in New Issue