1
0
Fork 0
mirror of https://github.com/NeoCloud/NeoNetwork synced 2024-12-26 00:29:23 +08:00

update roa

This commit is contained in:
Septs 2020-05-25 12:46:35 +08:00
parent aafff7e285
commit af76a332a6

View file

@ -156,22 +156,7 @@ def prehandle_roa(asn_table: dict, args):
def make_export(roa4, roa6): def make_export(roa4, roa6):
def modify_entity(entity): def modify_entity(entity):
entity["desc"] = ""
entity["nic_hdl"] = name_to_nic_hdl(entity["name"]) entity["nic_hdl"] = name_to_nic_hdl(entity["name"])
entity["auth"] = (
"persona" in entity
and "pgp-fingerprint {pgp}".format_map(entity["persona"])
or ""
)
if "babel" in entity:
del entity["babel"]
if "persona" in entity:
del entity["persona"]
if "contact" in entity:
entity["contact"] = [
"%s:%s" % (key.upper(), value)
for key, value in entity["contact"].items()
]
return entity return entity
def filter_route(records, asn): def filter_route(records, asn):