test generator fix

This commit is contained in:
hladu357 2024-06-10 10:06:23 +02:00
parent 51daa79d39
commit 86db3f9801
1 changed files with 2 additions and 2 deletions

View File

@ -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():