Skip to content

Commit

Permalink
Improve error message when customer has no allowed prefixes
Browse files Browse the repository at this point in the history
  • Loading branch information
vidister committed Oct 20, 2023
1 parent 9ae9e03 commit 243b642
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions wanda/as_filter/as_filter.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,8 @@ def prefix_lists(self):
v6_set.update(result_entries_v6_cleaned)

if len(v4_set) == 0 and len(v6_set) == 0 and self.is_customer:
l.error(f"{self.autos} has no v4 filter lists.")
raise Exception(
f"{self.autos} has no v6 filter lists. Since AS is our customer, we forbid this for security reasons.")
f"{self.autos} has neither IPv4, nor IPv6 filter lists. Since AS is our customer, we forbid this for security reasons.")

return v4_set, v6_set

Expand Down

0 comments on commit 243b642

Please sign in to comment.