mirror of
https://github.com/NeoCloud/NeoNetwork
synced 2024-11-25 04:00:40 +08:00
update roa
This commit is contained in:
parent
aafff7e285
commit
af76a332a6
1 changed files with 0 additions and 15 deletions
|
@ -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):
|
||||||
|
|
Loading…
Reference in a new issue