1
0
Fork 0
mirror of https://github.com/NeoCloud/NeoNetwork synced 2024-12-26 13:39:24 +08:00
This commit is contained in:
JerryXiao 2020-09-19 13:28:31 +08:00
parent 879a5619ce
commit 61e98c7e95
Signed by: Jerry
GPG key ID: 9D9CE43650FF2BAA

View file

@ -243,7 +243,7 @@ def make_rfc8416(roa4, roa6):
def make_roa_records(roa4, roa6): def make_roa_records(roa4, roa6):
records = [ records = [
"route {asn} max {prefix} as {maxLength};".format_map(roa) "route {prefix} max {maxLength} as {asn};".format_map(roa)
for roa in (*roa4, *roa6) for roa in (*roa4, *roa6)
] ]
return "\n".join(["# NeoNetwork ROA tool", "", *records]) return "\n".join(["# NeoNetwork ROA tool", "", *records])