mirror of
https://github.com/NeoCloud/NeoNetwork
synced 2024-12-23 20:19:24 +08:00
check if supernet is really super
This commit is contained in:
parent
fa60c76b66
commit
baa2c210d9
1 changed files with 1 additions and 1 deletions
|
@ -109,7 +109,7 @@ def route_to_roa(asn_table: dict):
|
|||
)
|
||||
assert fields["name"]
|
||||
assert is_neo_network(fields["prefix"])
|
||||
assert not fields["supernet"] or is_neo_network(fields["supernet"])
|
||||
assert not fields["supernet"] or (is_neo_network(fields["supernet"]) and fields["supernet"].supernet_of(fields["prefix"]))
|
||||
yield pick(fields, ["asn", "name", "type", "prefix", "supernet"])
|
||||
|
||||
entities = sorted(make_route(), key=lambda item: item["asn"])
|
||||
|
|
Loading…
Reference in a new issue